Unit1ppt 1
Unit1ppt 1
Shared Memory
Message passing
Resource Management in Operating System
Resource Allocation: This terms defines the process of assigning the available
resources to processes in the operating system. This can be done dynamically
or statically.
Resource: Resource can be anything that can be assigned dynamically or
statically in the operating system. Example may include CPU time, memory,
disk space, and network bandwidth etc.
Resource Management: It refers to how to manage resources efficiently
between different processes.
Process: Process refers to any program or application that is being executed in
the operating system and has its own memory space, execution state, and set
of system resources.
Scheduling: It is the process of determining from multiple number of
processes which process should be allocated a particular resource at a given
time.
• Scheduling: It is the process of determining from multiple number of
processes which process should be allocated a particular resource at a given
time.
• Deadlock: When two or more processes are waiting for some resource but
resources are busy somewhere else and resources are also waiting for some
process to complete their execution . In such condition neither resources will
be freed nor process would get it and this situation is called deadlock.
• Semaphore: It is the method or tool which is used to prevent race condition.
Semaphore is an integer variable which is used in mutual exclusive manner by
various concurrent cooperative process in order to achieve synchronization.
• Mutual Exclusion: It is the technique to prevent multiple number of process
to access the same resources simultaneously.
• Memory Management: Memory management is a method used in the
operating systems to manage operations between main memory and disk
during process execution.
Protection mechanisms
• System protection in an operating system refers to the
mechanisms implemented by the operating system to ensure
the security and integrity of the system. System protection
involves various techniques to prevent unauthorized access,
misuse, or modification of the operating system and its
resources.
• There are several ways in which an operating system can
provide system protection:
• User authentication: The operating system requires users to
authenticate themselves before accessing the system.
Usernames and passwords are commonly used for this
purpose.
• Encryption: The operating system can use encryption to
protect sensitive data and prevent unauthorized access.
• Firewall: A firewall is a software program that monitors and
controls incoming and outgoing network traffic based on
predefined security rules.
• Antivirus software: Antivirus software is used to protect the
system from viruses, malware, and other malicious
software.
• System updates and patches: The operating system must be
kept up-to-date with the latest security patches and updates
to prevent known vulnerabilities from being exploited.
Memory Management
• Memory is the important part of the computer that is used to store the
data. Its management is critical to the computer system because the
amount of main memory available in a computer system is very limited.
• At any time, many processes are competing for it. Moreover, to increase
performance, several processes are executed simultaneously. For this,
we must keep several processes in the main memory, so it is even more
important to manage them effectively.
• Memory management is a method in the operating
system to manage operations between main memory
and disk during process execution. The main aim of
memory management is to achieve efficient utilization of
memory.
Role of Memory management