Professional Documents
Culture Documents
Curated By
MULTITASKING Kavitha Patil
MULTIPROCESSING & MULTITASKING
1. Multiprocessor systems possess multiple CPUs and can execute multiple processes
simultaneously
2. • The ability of the Operating System to have multiple programs in memory, which
are ready for execution, is referred as multiprogramming
3. • Multitasking refers to the ability of an operating system to hold multiple
processes in memory and switch the processor (CPU) from executing one process to
another process
4. • Multitasking involves ‘Context switching’, ‘Context saving’ and ‘Context retrieval
5. ’ • Context switching refers to the switching of execution context from task to other
6. • When a task/process switching happens, the current context of execution should
be saved to (Context saving) retrieve it at a later point of time when the CPU
executes the process, which is interrupted currently due to execution switching
7. • During context switching, the context of the task to be executed is retrieved from
the saved context list. This is known as Contextretrieval
8 learning sessions
2 session for assignment and reviews
Teaching methods
group learning ,
peer learning ,
innovative quiz
self learning
Co-operative Multitasking
Preemptive Multitasking
Non-preemptive Multitasking
CPU Utilization
Throughput
Turnaround Time
Waiting Time
Response Time
Task Scheduling - Queues The various queues maintained by OS
in association with CPU scheduling are
• Job Queue: Job queue contains all the processes in the system
• Ready Queue: Contains all the processes, which are ready for
execution and waiting for CPU to get their turn for execution. The
Ready queue is empty when there is no process ready for
running. • Device Queue: Contains the set of processes, which
are waiting for an I/O device
INTRODUCTION TO EMBEDDED SYSTEM
1 January 2020
TASK SCHEDULING – TASK TRANSITION
THROUGH VARIOUS QUEUES