CSC423 - Lec11 - Distributed and Parallel ComputerSystems
CSC423 - Lec11 - Distributed and Parallel ComputerSystems
CSC 423
Spring 2021-2022
Lecture 11
Instructor
Dr / Ayman Soliman
➢ Contents
1) Design Issues for Threads Packages
3) System Models
4) Allocation Models
be made but is less robust and can put a heavy load on the central
machine.
alternatives.
11/5/2022 Dr/ Ayman Soliman 6
❑ Optimal and suboptimal
➢ Optimal solutions can be obtained in both centralized and
suboptimal ones.
ones.
11/5/2022 Dr/ Ayman Soliman 7
❑ Local and global algorithms
➢ When a process is about to be created, a decision has to be made
whether or not it can be run on the machine where it is being
generated.
o If that machine is too busy, the new process must be transferred
somewhere else.
➢ The last issue in our list deals with location policy. Once the transfer
policy has decided to get rid of a process, the location policy has to
figure out where to send it. Clearly, the location policy cannot be
local. It needs information about the load elsewhere to make an
intelligent decision.
11/5/2022 Dr/ Ayman Soliman 8
❑ Sender-initiated and receiver-initiated algorithms
➢ Algorithm 1
o picks a machine at random and just sends the new process there.
o If the receiving machine itself is overloaded, it picks a random
machine and sends the process off.
o This process is repeated until either somebody is willing to take
it, or a hop counter is exceeded
11/5/2022 Dr/ Ayman Soliman 13
❑ Processor Allocation Algorithms
➢ Algorithm 2
o picks a machine at random and sends it a probe asking if it is
underloaded or overloaded.
o If the machine admits to being underloaded
➢ Algorithm 3
o probes k machines to determine their exact loads.
o The process is then sent to the machine with the smallest load.
➢ The total network traffic is the sum of the arcs intersected by the
dotted cut lines, or 30 units. In Fig. (b) we have a different
partitioning that has only 28 units of network traffic.
➢ Graph-theoretic algorithms of the kind we have just discussed are of
limited applicability since they require complete information in
advance
11/5/2022 Dr/ Ayman Soliman 16
❑ Centralized Algorithm
➢ This algorithm is centralized in the sense that a coordinator
maintains a usage table with one entry per personal workstation (i.e.,
per user), initially zero.