Professional Documents
Culture Documents
Ch. 2 ... Part - 3
Ch. 2 ... Part - 3
Management
and
CH. 2 Synchronization
BY DR. VEEJYA KUMBHAR
Ch. 2
Process Management and Synchronization
Syllabus
• Process
• PCB
• Job and processor scheduling
• Problems of concurrent processes-
• Critical sections, Mutual exclusion,
Synchronization
• Deadlock
• Device and File Management
Device Management
Block Device:
Operating system keeps track of all devices by using a program known as input output
controller.
Apart from allowing the system to make the communication between these drivers operating
system is also responsible in keeping track all these devices which are connected with the
system.
If any device request any process which is under execution by the CPU then the operating
system has to send a signal to the CPU to immediately release that process and moves to the
next process from the main memory so that the process which is asked by the device fulfills the
request of this device.
That’s why operating system has to continuously keep on checking the status of all the devices
and for doing that operating system uses a specialized program which is known
as Input/Output controller.
Process Assignment
Operating system decides which process to assign to CPU and for how long.
So, operating system is responsible in assigning the processes to the CPU and it is also
responsible in selecting appropriate process from the main memory and setting up the
time for that process like how long that process needs to get executed inside the CPU.
Operating system is responsible in fulfilling the request of devices to access the process.
If the printer requests for the process which is now getting executed by the CPU then it is
the responsibility of the operating system to fulfill that request.
So, what operating system will do is it will tell the CPU that you need to immediately
release that process which the device printer is asking for and assign it to the printer.
Connection
Device Allocation
Device allocation refers to the process of assigning specific devices to
processes or users. It ensures that each process or user has exclusive access
to the required devices or shares them efficiently without interference.
Device Deallocation
Operating system deallocates devices when they are no longer in use. When
these drivers or devices are in use, they will be using certain space in the
memory so it is the responsibility of the operating system to continuously
keep checking which device is in use and which device is not in use so that it
can release that device if we are no longer using that device.
common techniques used by device management