SlideShare a Scribd company logo
TASK ALLOCATION AND SCHEDULING IN A
          MULTI-PROCESSOR ENVIRONMENT




Guided by                          Submitted by

Ms.ANJU S PILLAI                MUTHU KUMAR .B
Assistant professor(SG)         CB.EN.P2EBS10012
Department of EEE                Department of EEE
ABSTRACT

       Uniprocessor scheduling is widely used for its simplicity, reliability and
ease for implementation. But it has got its limitations over less processor
utilization factor. For a better processor utilization and performance
multiprocessor scheduling is preferred.

      One of the major challenges is to find an optimal task-processor
assignment. The work aims at finding different task processor assignment
policies and finding a better Processor Utilization and schedule the tasks
dynamically using EDF algorithm.
METHODOLOGY


•   The main objective of the project is to perform scheduling in a multiprocessor
    system.
•   Generation of a set of synthetic tasks.
•   Fix the number of processors needed for the system.
•   Static Priority assignment to all the tasks using RM scheduler with
    dispatcher.
•   Dynamic Priority assignment to all the tasks using EDF scheduler with
    dispatcher.
•   The next step is to perform task-processor assignment.
•   Implementation of
     1. Next Fit Algorithm
     2. Bin Packing Algorithm
•   The final stage is the scheduling of all the tasks in the multiprocessor system.
DEVELOPING A MULTIPROCESSOR SCHEDULE


         Make an allocation


           Schedule each
         processor based on
           the allocation                  Change Allocation

            Are all these
         schedules feasible


Output schedule                           Continue
                        Check stopping
                           criterion
                                 Stop
                        Declare Failure
EARLIEST DEADLINR FIRST ALGORITHM

If D=T

•   Shortest of the deadline of given task is selected as higher priority to be executed.
•   The highest priority task is executed first.

If D!=T

    If D>T

          The task is not schedulable probably which means it misses the deadline.

    If D<T

          1.The task set is just checked for the feasible solution.
          2.Feasible solution is found by using the Processor Demand Analysis.
DEADLINE = TIME PERIOD

            TASK               COMPUTATION TIME    TIME PERIOD(D=T)
              A                           1               3
              B                           1               6
              C                           1               5
              D                           3              10




Priorities of tasks scheduled using EDF

 132144143213124144312134144231
EARLIEST DEADLINE FIRST ALGORITHM ( EDF )
Task allocation and scheduling inmultiprocessors
EARLIEST DEADLINE FIRST TRACE
DEADLINE < TIME PERIOD




        TASK           COMPUTATION        DEADLINE   TIME PERIOD(D=T)
                          TIME
         A                    3              4              6
         B                    4              7              8


Priorities of tasks scheduled using EDF
            Deadline Miss !
     1 2 1 2 …..

       Hence not schedulable.
Task allocation and scheduling inmultiprocessors
TASK ALLOCATION USING NEXT FIT ALGORITHM




PROCEDURE FOR NEXT FIT ALGORITHM

1.Tasks with utilization are divided into classes with uniform utilization range.
2.According to number of classes the number of processors are decided.
3.Each class is assigned to specific processors.
TASKS :         A      B      C      D      E     F      G    H    I     J
 COMPUTATION         5      7      3      1     10     16     1   13    9    17
    TIME
  TIME PERIOD        10    21     22     24     30     40    50   55    75   100

   Utilization       0.5   0.33   0.14   0.04   0.33   0.4   0.02 0.24 0.13 0.17

Processor or Class   4      3      1      1      3     3      1    2    1    1




  if(U(i)<0.19)       Task in processor P4
   if(U(i)<0.26)      Task in processor P3
   if(U(i)<0.41)      Task in processor P2
   if(U(i)<=1)        Task in processor P1
NEXT FIT ALGORITHM FOR TASK ALLOCATION
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
BIN PACKING ALGORITHM

BIN PACKING ALGORITHM

   1.First fit random algorithm
   2.First fit decreasing algorithm

PROCEDURE FOR FIRST FIT RANDOM

1.Random tasks with utilization are selected and packed in a bin.
2.If bin exceeds 100% on further addition of tasks bin2 is started to be packed.
3.Task Utilizations are always whether they can be packed fully on previous
    processors.
TASKS :         A      B      C      D      E     F      G    H    I     J
      COMPUTATION         5      7      3      1     10     16     1   13    9    17
         TIME
       TIME PERIOD        10    21     22     24     30     40    50   55    75   100

        Utilization       0.5   0.33   0.14   0.04   0.33   0.4   0.02 0.24 0.13 0.17

     Processor or Class   1      1      1      2      2     2      2    3    3    3




1.     After utilization exceeds 1 it changes to processor 2.
2.     After utilization exceeds 2 it changes to processor 3.
3.     So number of processors required is 3 to accommodate the given task set.
BIN PACKING ALGORITHM FOR TASK ALLOCATION
Task allocation and scheduling inmultiprocessors
Task allocation and scheduling inmultiprocessors
TIME FRAME


I.     Literature Review - Aug 2011
II.    Synthetic task generation and priority assignment – Sep 2011
III.   Implementation of Task-Processor allocation policies – Oct & Nov 2011
IV.    Scheduling of tasks - Dec 2011
V.     Analysis of the results – Jan 2011
VI.    Hardware implementation– Feb to May 2012
VII.   Documentation – Jun 2012
REFERENCES


1.   P. Ancilotti, G. Buttazzo, M. D. Natale, and M. Spuri. “Design and
     programming tools for time critical applications.” Real-Time Systems, 14:3,
     pp. 251–269, May 1998.
2.   R. Pellizzoni and G. Lipari Feasibility “Analysis of Real-Time Periodic Tasks
     with Offsets “Real-Time Systems Journal, 2005.
3.   Eric W.Parsons and Kenneth C.Sevcik“Implementing multiprocessor
     algorithms”.
4.   Haobo Yu, Andreas Gerstlauer and Daniel Gajski “RTOS Scheduling in
     transaction level models”
THANK YOU !

More Related Content

DOC
Ch5 answers
PDF
Final Exam OS fall 2012-2013 with answers
PDF
Cpu scheduling qusetions
PDF
M017419499
PPT
Real time scheduling - basic concepts
PPT
Mutual exclusion and sync
PPT
Parallel computing chapter 3
PDF
The International Journal of Engineering and Science (The IJES)
Ch5 answers
Final Exam OS fall 2012-2013 with answers
Cpu scheduling qusetions
M017419499
Real time scheduling - basic concepts
Mutual exclusion and sync
Parallel computing chapter 3
The International Journal of Engineering and Science (The IJES)

What's hot (20)

PPTX
BIRTE-13-Kawashima
PPT
Os5
PDF
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
PPTX
Real time Scheduling in Operating System for Msc CS
PPTX
Clock driven scheduling
PDF
Implementation and evaluation of novel scheduler of UC/OS (RTOS)
PDF
Real Time most famous algorithms
PPTX
Approaches to real time scheduling
PPTX
Reference model of real time system
PDF
Tutotial 2 answer
PDF
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
PDF
Transfer Learning for Performance Analysis of Configurable Systems: A Causal ...
PPT
Planificacion
PPTX
Hard versus Soft real time system
PDF
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
PDF
RR and priority scheduling
PDF
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
PPTX
Real time-system
PPTX
Commonly used Approaches to Real Time Scheduling
BIRTE-13-Kawashima
Os5
Sara Afshar: Scheduling and Resource Sharing in Multiprocessor Real-Time Systems
Real time Scheduling in Operating System for Msc CS
Clock driven scheduling
Implementation and evaluation of novel scheduler of UC/OS (RTOS)
Real Time most famous algorithms
Approaches to real time scheduling
Reference model of real time system
Tutotial 2 answer
SOLUTION MANUAL OF COMPUTER ORGANIZATION BY CARL HAMACHER, ZVONKO VRANESIC & ...
Transfer Learning for Performance Analysis of Configurable Systems: A Causal ...
Planificacion
Hard versus Soft real time system
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
RR and priority scheduling
Scheduling Task-parallel Applications in Dynamically Asymmetric Environments
Real time-system
Commonly used Approaches to Real Time Scheduling
Ad

Viewers also liked (20)

PDF
Task Time Allocation Template
PPTX
JSRS- Presentation
PDF
UnaCloud: Opportunistic Cloud Computing Infrastructure as a Service
PDF
Cloud computing Review over various scheduling algorithms
PPT
International conference power point presentation Skopje 2014
PPTX
Load Balancing In Distributed Computing
PPT
Software project-scheduling
PPTX
Conference Powerpoint Presentations
PDF
2013 State of Cloud Survey SMB Results
PDF
Breaking through the Clouds
PPT
Resource allocation
PDF
Intro to cloud computing — MegaCOMM 2013, Jerusalem
PPTX
2013 Future of Cloud Computing - 3rd Annual Survey Results
PPTX
IEEE Presentation
PDF
Can we hack open source #cloud platforms to help reduce emissions?
PPTX
Penetrating the Cloud: Opportunities & Challenges for Businesses
PDF
Summer School Scale Cloud Across the Enterprise
PPTX
The Inevitable Cloud Outage
PPTX
Simplifying The Cloud Top 10 Questions By SMBs
PPTX
Delivering IaaS with Open Source Software
Task Time Allocation Template
JSRS- Presentation
UnaCloud: Opportunistic Cloud Computing Infrastructure as a Service
Cloud computing Review over various scheduling algorithms
International conference power point presentation Skopje 2014
Load Balancing In Distributed Computing
Software project-scheduling
Conference Powerpoint Presentations
2013 State of Cloud Survey SMB Results
Breaking through the Clouds
Resource allocation
Intro to cloud computing — MegaCOMM 2013, Jerusalem
2013 Future of Cloud Computing - 3rd Annual Survey Results
IEEE Presentation
Can we hack open source #cloud platforms to help reduce emissions?
Penetrating the Cloud: Opportunities & Challenges for Businesses
Summer School Scale Cloud Across the Enterprise
The Inevitable Cloud Outage
Simplifying The Cloud Top 10 Questions By SMBs
Delivering IaaS with Open Source Software
Ad

Similar to Task allocation and scheduling inmultiprocessors (20)

PPTX
Multiprocessor scheduling 3
PPT
ESC UNIT 3.ppt
PDF
An Improved Parallel Activity scheduling algorithm for large datasets
PPT
Multiprocessor scheduling 1
PPTX
Priority driven scheduling of periodic tasks
PPT
Multiprocessor scheduling 2
PPTX
Multiprocessor Real-Time Scheduling.pptx
PDF
Problems in Task Scheduling in Multiprocessor System
PDF
Genetic Algorithm for Process Scheduling
PPT
Scheduling and Scheduler's Process and Premptive
PPT
multiprocessor real_ time scheduling.ppt
PDF
HYBRID HEURISTIC-BASED ARTIFICIAL IMMUNE SYSTEM FOR TASK SCHEDULING
PDF
A Heterogeneous Static Hierarchical Expected Completion Time Based Scheduling...
PPTX
Real time-system
PDF
6_RealTimeScheduling.pdf
PPTX
Embedded system scheduling Algorithm .pptx
PDF
Embedded Recipes 2017 - Understanding SCHED_DEADLINE - Steven Rostedt
PPTX
ERTS UNIT 5.pptx
PPT
Multiprocessor Real-Time Sched_uling.ppt
PDF
cpu scheduling by shivam singh
Multiprocessor scheduling 3
ESC UNIT 3.ppt
An Improved Parallel Activity scheduling algorithm for large datasets
Multiprocessor scheduling 1
Priority driven scheduling of periodic tasks
Multiprocessor scheduling 2
Multiprocessor Real-Time Scheduling.pptx
Problems in Task Scheduling in Multiprocessor System
Genetic Algorithm for Process Scheduling
Scheduling and Scheduler's Process and Premptive
multiprocessor real_ time scheduling.ppt
HYBRID HEURISTIC-BASED ARTIFICIAL IMMUNE SYSTEM FOR TASK SCHEDULING
A Heterogeneous Static Hierarchical Expected Completion Time Based Scheduling...
Real time-system
6_RealTimeScheduling.pdf
Embedded system scheduling Algorithm .pptx
Embedded Recipes 2017 - Understanding SCHED_DEADLINE - Steven Rostedt
ERTS UNIT 5.pptx
Multiprocessor Real-Time Sched_uling.ppt
cpu scheduling by shivam singh

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Business Ethics Teaching Materials for college
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharma ospi slides which help in ospi learning
PDF
RMMM.pdf make it easy to upload and study
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
Abdominal Access Techniques with Prof. Dr. R K Mishra
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
STATICS OF THE RIGID BODIES Hibbelers.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Business Ethics Teaching Materials for college
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
2.FourierTransform-ShortQuestionswithAnswers.pdf
VCE English Exam - Section C Student Revision Booklet
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Microbial disease of the cardiovascular and lymphatic systems
Pharma ospi slides which help in ospi learning
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025

Task allocation and scheduling inmultiprocessors

  • 1. TASK ALLOCATION AND SCHEDULING IN A MULTI-PROCESSOR ENVIRONMENT Guided by Submitted by Ms.ANJU S PILLAI MUTHU KUMAR .B Assistant professor(SG) CB.EN.P2EBS10012 Department of EEE Department of EEE
  • 2. ABSTRACT Uniprocessor scheduling is widely used for its simplicity, reliability and ease for implementation. But it has got its limitations over less processor utilization factor. For a better processor utilization and performance multiprocessor scheduling is preferred. One of the major challenges is to find an optimal task-processor assignment. The work aims at finding different task processor assignment policies and finding a better Processor Utilization and schedule the tasks dynamically using EDF algorithm.
  • 3. METHODOLOGY • The main objective of the project is to perform scheduling in a multiprocessor system. • Generation of a set of synthetic tasks. • Fix the number of processors needed for the system. • Static Priority assignment to all the tasks using RM scheduler with dispatcher. • Dynamic Priority assignment to all the tasks using EDF scheduler with dispatcher. • The next step is to perform task-processor assignment. • Implementation of 1. Next Fit Algorithm 2. Bin Packing Algorithm • The final stage is the scheduling of all the tasks in the multiprocessor system.
  • 4. DEVELOPING A MULTIPROCESSOR SCHEDULE Make an allocation Schedule each processor based on the allocation Change Allocation Are all these schedules feasible Output schedule Continue Check stopping criterion Stop Declare Failure
  • 5. EARLIEST DEADLINR FIRST ALGORITHM If D=T • Shortest of the deadline of given task is selected as higher priority to be executed. • The highest priority task is executed first. If D!=T If D>T The task is not schedulable probably which means it misses the deadline. If D<T 1.The task set is just checked for the feasible solution. 2.Feasible solution is found by using the Processor Demand Analysis.
  • 6. DEADLINE = TIME PERIOD TASK COMPUTATION TIME TIME PERIOD(D=T) A 1 3 B 1 6 C 1 5 D 3 10 Priorities of tasks scheduled using EDF 132144143213124144312134144231
  • 7. EARLIEST DEADLINE FIRST ALGORITHM ( EDF )
  • 10. DEADLINE < TIME PERIOD TASK COMPUTATION DEADLINE TIME PERIOD(D=T) TIME A 3 4 6 B 4 7 8 Priorities of tasks scheduled using EDF Deadline Miss ! 1 2 1 2 ….. Hence not schedulable.
  • 12. TASK ALLOCATION USING NEXT FIT ALGORITHM PROCEDURE FOR NEXT FIT ALGORITHM 1.Tasks with utilization are divided into classes with uniform utilization range. 2.According to number of classes the number of processors are decided. 3.Each class is assigned to specific processors.
  • 13. TASKS : A B C D E F G H I J COMPUTATION 5 7 3 1 10 16 1 13 9 17 TIME TIME PERIOD 10 21 22 24 30 40 50 55 75 100 Utilization 0.5 0.33 0.14 0.04 0.33 0.4 0.02 0.24 0.13 0.17 Processor or Class 4 3 1 1 3 3 1 2 1 1 if(U(i)<0.19) Task in processor P4 if(U(i)<0.26) Task in processor P3 if(U(i)<0.41) Task in processor P2 if(U(i)<=1) Task in processor P1
  • 14. NEXT FIT ALGORITHM FOR TASK ALLOCATION
  • 17. BIN PACKING ALGORITHM BIN PACKING ALGORITHM 1.First fit random algorithm 2.First fit decreasing algorithm PROCEDURE FOR FIRST FIT RANDOM 1.Random tasks with utilization are selected and packed in a bin. 2.If bin exceeds 100% on further addition of tasks bin2 is started to be packed. 3.Task Utilizations are always whether they can be packed fully on previous processors.
  • 18. TASKS : A B C D E F G H I J COMPUTATION 5 7 3 1 10 16 1 13 9 17 TIME TIME PERIOD 10 21 22 24 30 40 50 55 75 100 Utilization 0.5 0.33 0.14 0.04 0.33 0.4 0.02 0.24 0.13 0.17 Processor or Class 1 1 1 2 2 2 2 3 3 3 1. After utilization exceeds 1 it changes to processor 2. 2. After utilization exceeds 2 it changes to processor 3. 3. So number of processors required is 3 to accommodate the given task set.
  • 19. BIN PACKING ALGORITHM FOR TASK ALLOCATION
  • 22. TIME FRAME I. Literature Review - Aug 2011 II. Synthetic task generation and priority assignment – Sep 2011 III. Implementation of Task-Processor allocation policies – Oct & Nov 2011 IV. Scheduling of tasks - Dec 2011 V. Analysis of the results – Jan 2011 VI. Hardware implementation– Feb to May 2012 VII. Documentation – Jun 2012
  • 23. REFERENCES 1. P. Ancilotti, G. Buttazzo, M. D. Natale, and M. Spuri. “Design and programming tools for time critical applications.” Real-Time Systems, 14:3, pp. 251–269, May 1998. 2. R. Pellizzoni and G. Lipari Feasibility “Analysis of Real-Time Periodic Tasks with Offsets “Real-Time Systems Journal, 2005. 3. Eric W.Parsons and Kenneth C.Sevcik“Implementing multiprocessor algorithms”. 4. Haobo Yu, Andreas Gerstlauer and Daniel Gajski “RTOS Scheduling in transaction level models”