Beruflich Dokumente
Kultur Dokumente
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.
Methods:
By disallowing the migration of processes that wait for
one or more of their children to complete.
By ensuring that when a parent process migrates, its
children process will be migrated along with it.
8
10 3 5
11 7
6 2
Processor of Processor of
Type 3 9
Type 4
12
1 2
8 3
Processor of Processor of
External data
Type 4 Type 2
representation
4
7
5
6
Processor of
Type 3
Solution:
The external data representation must have sufficient
precision to handle the largest mantissa.
Solution:
Remote computations can be viewed as ‘extra precision’
calculation.
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 82
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)