Professional Documents
Culture Documents
02 Processes
02 Processes
Processors
point of view:
Combined
Trace of
Processes
The Process Model
8 Lecture 2
Now if multiple processes are around the question is which process to execute,
the simplest approach could be using a queue in which the suspended processes
are lined up as shown in Fig.(b) (one thing must be remembered here that all
these processes are in a state that when they are selected from the queue (FIFO
fashion) they directly go to execution state) and the system execute them in a
FIFO fashion when there turn comes. The processes are being executed in a
Round Robin technique, that is each process is executed for a given amount of
time.
Five-State Process Model
10 Lecture 2
To have more natural look towards the states of a process the following model with five
states are presented:
New: A process that has just been created & is not admitted to the pool of executable
processes by the operating system. • Exit: A process that has been released from the pool of
executable processes by the o/s, either because it is halted or aborted for some reason. •
Executing: Instructions are being executed. • Ready: The process is waiting its turn to go
into execution by the processor. • Blocked: The process is temporarily suspended, waiting
for some event to occur, e.g., an I/O function..
Creating & Termination Processes
11 Lecture 2
Typically there are four commonly known instances responsible for creating
processes:
New Batch Job: A process is created in response to the submission of a job,
also a new process can be created when processor is ready to accept another
assignment.
Interactive Log on: In a networking system when a user logon a process is
created.
To provide a Service: In this case a process is created on behalf of the
application, e.g., if a user wants to print a file, a process can be created on
behalf of an application to print that file.
Creating & Termination Processes
12 Lecture 2