Real Time System - : BITS Pilani
Real Time System - : BITS Pilani
Lecture 14
BITS Pilani Rekha. A
Pilani Campus
Real time task scheduling
on multiprocessor and
distributed system
BITS Pilani
Pilani Campus
Task Assignment Algorithm
Static:
• Utilization Balancing Algorithm
• Next – Fit Algorithm
• Bin packing algorithm
Dynamic:
• Focused addressing and bidding algorithm
• Buddy algorithm
For n Processor:
n classes of tasks is constructed.
A task belongs to class j, iff
(21/(j+1) -1) < ei/pi <= (21/j -1)
Consider 4 processors
Class 4 (0.41,1)
Class 3(0.26,0.41)
Class 2(0.19, 0.26)
Class 1 (0, 0.19)
Class4 (0.41,1)
Class 3(0.26,0.41)
Class 2(0.19, 0.26)
Class 1(0, 0.19)
• Status table
If not, then:
• Examines system load table to look for a processor to
offload the task.
The processor that had sent RFB, waits for bids to arrive or
until a specified time has expired since receiving the
task.
In multi-hop networks:
• The buddy set of a processor is typically the processors
that are its immediate neighbours.
Selection policy:
• The tasks that fail admission test at the local node are
considered for transfer.
Information policy:
• Based on buddy set
• When a node makes transition into or out of a state, it
informs its buddies
Transfer policy:
• One of the buddies is chosen as the receiver, based on
the load information available.
6 7
4
5
2
3
0
1
6 7
4
5
2
3
0
1
2
3
0
1
2
3
0
1
2
3
0
1
Choice of thresholds:
• Large upper threshold: Lower the rate at which tasks will
be migrated.
• The choice of thresholds depend on size of buddy set,
topology.
BITS Pilani, Pilani Campus
Buddy Set Algorithm - Issues
Thrashing
• A node X, could be a buddy for several nodes. When
many of these several nodes become overloaded, they
migrate their tasks to the node X and making it
overloaded. This results in further migration of task.