Docsity

Processes - Embedded Real-Time System Programming - Lecture Slides, Slides of Computer Programming

Partial preview of the text

Download Processes - Embedded Real-Time System Programming - Lecture Slides and more Slides Computer Programming in PDF only on Docsity!

Scheduling

Basic Concepts

Processes - Tasks - Threads

Nostalgia

Automobile Computers: 2006: 1-2 million lines of code 2010: 10 million lines of code Apollo Guidance Computer First Microprocessor Microcontroller 99%+ of today’s computers are in embedded systems

Orientation

  • Schedule:

An assignment of tasks to the processor, so that each

task is executed until completion

  • Scheduling Policy:

Tasks assigned according to a predefined criterion

  • Scheduling Algorithm:

The set of rules that determines the ordering of tasks

  • Active Task  Ready Task  Running Task

(Ready Queue) (Dispatching)

Definition of Schedule

What does it say?

Preemptive Schedules

Deadlines

  • Deadline:

Absolute – with respect to real-time (time zero)

Relative – with respect to arrival time

Real-Time Task Parameters

Periodic vs Aperiodic Tasks

Precedence Constraints

Critical Sections

Binary Semaphore

Critical Section Example

Definition of Scheduling Problems

Classification of Scheduling Algorithms