Professional Documents
Culture Documents
Intro To DSs CH 3 - Processes (Given 2013-I)
Intro To DSs CH 3 - Processes (Given 2013-I)
Chapter 3
Processes
Birhanie Ewnetu
bireuog@gmail.com
University of Gondar (UOG)
Computer Science Department
1) Introduction to Processes
2) Types of Processes (Processes in Early
Computer Systems and Distributed Systems)
3) Multithreading Usage (in Distributed Systems
and Non-Distributed Systems)
4) More Benefits of Multithreading
5) Code Migration
What’s Process?
Communication takes place between processes.
From operating systems concept a process is
generally defined as a program in execution.
Model Characteristics
Single-threaded No parallelism, blocking system
process calls
Threads Parallelism, blocking system calls
(thread only)
Finite-state machine Parallelism, non blocking system
calls
19 BireZman (bireuog@gmail.com)
10/24/2021
II. Resource Sharing
20 BireZman (bireuog@gmail.com)
10/24/2021
III. Economy
22 BireZman (bireuog@gmail.com)
10/24/2021
5) Code Migration
25 BireZman (bireuog@gmail.com)
10/24/2021
I. Data Migration
Suppose a user on site A wants to access data (e.g.; a file)
that reside at site B, then the system can transfer the data in
two basic methods.
a) First approach of data migration is to transfer the entire
file to site A.
From that point on, all access to the file is local.
o When the user no longer needs access to the
file, a copy of the file (if it has been
modified) is sent back to site B.
o Even if only a modest change has been
made to a large file, all the data must be
transferred.
This mechanism can be thought of as an
26 automated FTP system.
BireZman (bireuog@gmail.com) 10/24/2021
b) Second approach is to transfer to site A only those
portions of the file that are actually necessary for the
immediate task.
If another portion is required later, another transfer
will take place.
When the user no longer wants to access the file,
any part of it that has been modified must be sent
back to site B.
note the similarity to demand paging.
o The Sun Microsystems network file system
(NF5) protocol uses this method.
o The Microsoft 5MB protocol (running on top
of either TCP/IP or the Microsoft
NetBEUIprotocol) also allows file sharing
27
over a network.
BireZman (bireuog@gmail.com) 10/24/2021
Comparing the two data transfer approaches
Clearly, if only a small part of a large file is being
accessed, the second approach is preferable.
If significant portions of the file are being accessed,
however, it is more efficient to copy the entire file.
In both methods, data migration includes more than
the mere transfer of data from one site to another.
The system must also perform various data
translations if the two sites involved are not directly
compatible (for instance, if they use different
character-code representations or represent integers
with a different number or order of bits).