Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Context switch » ?

Definition 31.5 High School Computer Science · Chapitre 31 — Processes and Scheduling

A context switch is the work of the kernel to stop one process and start another: save the registers of the first, choose the second, restore its registers and its memory map. While it happens, no process does useful work.

Round robin with a quantum of 2 on the workload of the listing. A, B, C and D arrive at times 0 to 3. Each process runs at most two units, then goes to the end of the queue; B needs a third unit at time 10, A its fifth at time 13; C, the longest, finishes last at 18.
Round robin with a quantum of 22 on the workload of the listing. A, B, C and D arrive at times 00 to 33. Each process runs at most two units, then goes to the end of the queue; B needs a third unit at time 1010, A its fifth at time 1313; C, the longest, finishes last at 1818.
Lire dans le chapitre →