Process Management
Process Management
Time
Process P1 in
Execution execution
suspended
Transfer of
Freezing time control
Execution
resumed
Process p1 in execution
Process’s state
Process’s address space
Disadvantage:
Process is suspended for long time during migration,
timeouts may occur, and if process is interactive, the
delay will be noticed by the user.
Execution
suspended
Transfer of
Freezing time address space
Execution
resumed
Execution Transfer of
suspended address space
Freezing time
Execution
resumed
On-demand
transfer of
address space
Mechanisms :
Disallowing separation of coprocesses.
Home node or origin site concept.
States of Threads:
Running, blocked, ready, or terminated.
Requests
Port
Dispatcher Thread
A Server process for
Worker Worker Worker
processing incoming
Thread Thread Thread requests
Requests
Port
Static approach:
Threads remain fixed for its entire lifetime.
Fixed stack is allocated to each thread.
No. of threads of a process is decided at the time of
writing a program or during compilation.
Dynamic approach:
Number of threads changes dynamically.
C.S.E.D MNNIT Allahabad 70
Threads Termination
A thread may either destroy itself when it finishes
its job by making an exit call
or
be killed from outside by using the kill command
and specifying the thread identifier as its
parameter.
Lock (mutex_A)
Unlock (mutex_A) succeeds
Signal (A_free)