Operating System - CPU Virtualization and Processes

Subscribe Send me a message home page tags


Related Readings

What is CPU virtualization?

By CPU virtualization, we mean the illusion created by the OS that there are multiple CPUs but in reality there may be only one physical processor on the machine.

Virtualizing CPUs

Switching Between Processes

context switch

policies -> scheduling policy

process -> machine state

General APIs

Process States

process_state_transitions.png

Limited Direct Execution

system_call.png

Three concepts

Scheduling

Metrics

Definition. Turnaround Time

\( T_{turnaround} = T_{completion} - T_{arrival}\)

Definition. Resposne Time

\( T_{response} = T_{first run} - T_{arrival} \)

There is a fundamental tradeoff: performance vs fairness

Algorithms

Notion of time slice

Note that time slice should be a multiple of the timer-interrupt period.

Read a paper of latest scheudling algorithm ?

------------------------------------------------------------------------------------------

Note:

----- END -----

Welcome to join reddit self-learning community.
Send me a message Subscribe to blog updates

Want some fun stuff?

/static/shopping_demo.png