You are on page 1of 9

Operating System Concepts

Lecture 12: Practice problems on CPU scheduling

Dr Avani Vyas
SRTF
SRTF
Thread Scheduling
Contention Scope

• Process Contention Scope (PCS)

• System Contention Scope (SCS)


Multiprocessor Scheduling

• Load sharing is possible.

• Approaches to Multi-Processor Scheduling

• Asymmetric multiprocessing

• Master processor handles scheduling

• Symmetric multiprocessing

• Each processor is self scheduling

• Either each processor can take process from ready queue.

• Or, each processor can have its own ready queue.


Symmetric Multiprocessing
Processor a nity

• Soft a nity

• Hard a nity
ffi
ffi
ffi
Symmetric
Load balancing

• Push migration

• A speci c task periodically checks load

• Pull migration

• An idle processor pulls a waiting task.


fi
Multicore Processors

• Many recent hardware designs have implemented multithreaded processor


cores

• dual-threaded, dual-core system means four logical processors.

You might also like