c - When do process switching takes place -
i confused process switching between 2 processes. when new process created using fork, general rules applicable switching between processes. when 1 processes goes idle state? have few doubts
- what happen when parent , child in both infinite loop , having print instruction (no sleep method)
- what general rule?
most preemptive schedulers will, highly simplified, allocate maximum time each process.
when time expires (for instance 10 ms), re-schedule other processes cpu.
if timer doesn't expire before process hits other wait condition (such doing i/o), re-schedule then, instead.
Comments
Post a Comment