240 likes | 422 Vues
Scheduling Basic Concepts Ref: Hard Real-Time Computing Systems Giorgio Buttazzo Processes - Tasks - Threads. Nostalgia. Apollo Guidance Computer First Microprocessor Microcontroller. Automobile Computers: 2006: 1-2 million lines of code
E N D
SchedulingBasic ConceptsRef: Hard Real-Time Computing SystemsGiorgio ButtazzoProcesses - Tasks - Threads
Nostalgia Apollo Guidance Computer First Microprocessor Microcontroller Automobile Computers: 2006: 1-2 million lines of code 2010: 10 million lines of code 99%+ of today’s computers are in embedded systems
The Osborne I (1981) First Portable Computer Software: CPM Word Star SuperCalc Dbase II CBasic • Hardware: • Dual 5¼-inch floppy disk drives • 4 MHzZ80CPU • 65 kilobytes main memory • Fold-down keyboard doubling as the computer case's lid • 5-inch, 52 character × 24 line monochromeCRT display • Parallelprinter port • Serial port for use with external modems or serial printers
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?
Deadlines Deadline: Absolute – with respect to real-time (time zero) Relative – with respect to arrival time
Critical Sections Binary Semaphore