Process Image

202310092237
Status: #idea
Tags: OS

Process Image

UNIX Process Model

Lazy Invocation

Returning from kernel running to user running is a decision point for the UNIX scheduler.
UNIX uses a priority round-robin scheduler

Info

All priority-driven schedulers suffer from starvation.
Ageing is a possible solution where a process's priority increases with its age

Attention

UNIX will not move asleep processes from swap to memory, even if memory is available.

Important

Creating a child process cuts your time slice in half (in Linux).
Your child joins before you in the ready queue, and then short-term scheduler is called.

Note

Using a syscall is NOT a decision point for the short-term scheduler. Only returning from a syscall is

Warning

The preempted state is a transient state for a process

Info

In the Linux model, OS functions are divided into various processes. So, a mode switch also acts as a context switch


References