Commutation of context

A commutation of ''' context ''' ( context switch ) in Informatique consists in safeguarding the state of a process or a light Processus and restoring the state of another process (light) so that multiple processes can share the resources of only one Processeur within the framework of a Operating system Multitâche.

A commutation of context can be more or less expensive in time processor following the operating system and the material architecture used.

The safeguarded context must at least include a notable portion of the state of the Processeur (general registers, registers of states, etc) like, for certain systems, the data necessary to the operating system to manage this process.

The commutation of context calls upon at least three stages. For example, by supposing that one wants to commutate the use of the processor by the P1 process towards the P2 process:

  • To safeguard the context of the P1 process some share in memory (usually on the pile of P1).

  • To find the context of P2 in memory (usually on the pile of P2).
  • To restore the context of P2 in the processor, the last stage of the restoration consisting in taking again the execution of P2 at its point of last execution.

Certain processors can safeguard and restore the context of the processor in-house, thus avoiding having to safeguard this context in Random access memory.

Random links:Beautiful damage (1994) | Rheinsberg | Robert of Auxerre | Passage Ben-Aïad | The Recreation | Pharmacia