Chapter 3 Processes
Chapter 3 Processes
● Process state – current state of the process e.g. new, ready, running, waiting, etc.
● Process ID - unique identification for each of the process in the operating system.
● Accounting information – CPU used, clock time elapsed since start, time limits
● I/O status information – I/O devices allocated to process, list of open files
● Process scheduling is the removal of the running process from the CPU and the
selection of another process from the ready queue to maximize CPU utilization.
● Process scheduler selects among available processes for next execution on CPU.
● Maintains scheduling queues of processes
● Ready queue – set of all processes residing in main memory, ready and waiting
to execute
● The primary distinction between CPU scheduler and job scheduler lies in frequency of
execution.
● Medium-term scheduler can be added if degree of multiprogramming needs to
decrease using swapping.
● Context-switch time is pure overhead, because the system does no useful work while
switching.
● process creation
● process termination
● A process may create several new processes, via a create-process() system
call, during the course of execution.
4 Each of these new processes may in turn create other processes, forming
a tree of processes.
● Orphan is a process running and its parent terminated without invoking wait()
system call
1: independent : Any process that does not share data with any other process
is independent.
● Convenience: an individual user may work on many tasks at the same time.
4 Shared memory
4 Message passing
END
BY: Abdirahman Abdulahi Farah
CLASS : CA2013