Process Management
Process Management
Process management
▪ Conventional OS: deals with the mechanisms and policies for sharing
the processor of the system among all processes
▪ Distributed OS : To make best possible use of the processing
resources of the entire system by sharing them among all processes.
Three concepts to achieve this goal:
▪ Processor allocation: Deals with the process of deciding
which process should be assigned to which processor
▪ Process migration: Deals with the movement of a process from its current
location to the processor to which it has been assigned
▪ Threads: Deals with fine-grained parallelism for better utilization of the
processing capability of the system
Process Migration
Process Migration
▪ The act of transferring a process between two machines during its execution
▪ Relocation of a process from its current location (source node) to another node (destination
node)
• The process is frozen after the completion of all fast I/O operations.
Note that it is feasible to wait for fast I/O operations to complete before freezing the
process. However, it is not feasible to wait for slow I/O operations, such as those on a
pipe or terminal, because the process must be frozen in a timely manner for the
effectiveness of process migration.
Process Migration Mechanisms
Mechanisms for freezing and restarting a process
Information about the open files
In a distributed system that provides a network transparent execution
environment, there is no problem in collecting this state information because the same
protocol is used to access local as well as remote files using the systemwide unique
file identifiers.
However, several UNIX-based network systems uniquely identify files by their full
pathnames but in these systems it is difficult for a process in execution to obtain
a file's complete pathname owing to UNIX file system semantics.
The following two approaches are used for this:
• In the first approach a link is created to the file and the pathname of the
link is used as an access point to the file after the process migrates.
• In the second approach an open file's complete pathname is reconstructed when
required.
Process Migration Mechanisms
Address Space Transfer Mechanisms
➢ Information to be transferred from source node to destination node:
• Process’s state information
• Process’s address space
➢ Three methods for address space transfer
• Total Freezing
• Pre transferring
• Transfer on reference
Process Migration Mechanisms
❑Total Freezing
Sourcenode destinationnode
❑Execution is stopped
Time
while its address Execution
space is being suspended Migration
decision made
transferred
❑Process is suspended
for a long time Transfer of
address
Freezing
during migration Time
space
Execution
❑Simple and easy to resumed
implement
❑Not suitable for
interactive process
Process Migration Mechanisms
❑ Pretransferring (precopying) destinationnode
Sourcenode
❑ Address space is transferred
Time
while the process is still running
on the source node Migrationdecision
made
❑ Initial transfer of the complete
address space followed by Execution suspended
repeated transfers of the pages Transfer of
Freezing addressspace
modified during previous transfer
Time
❑ Remaining modified pages are Execution
resumed
retransferred after the process is
frozen for transferring its state
information
❑ freezing time is reduced
❑ Pretransfer operation is executed at a higher priority than all other programs
on the source node
❑ Total time of migration is increased due to the possibility of redundant page
transfers
Process Migration Mechanisms
❑ Transfer on reference Sourcenode destination node
❑ Based on the assumption that Time
the process tends to use only a
Execution Migration decision
relatively small part of their Freezing suspended made
address space while executing. Time
Execution resumed
❑ A page of the address space is
transferred from its source On demand
node to destination node only Transfer of
when referenced address space