kontekstinvaihtojen
Kontekstinvaihto, also known as context switching, is a fundamental concept in operating systems and computer science. It refers to the process of saving the state of one process or thread so that it can be restored and resumed later, and then loading the saved state of another process or thread. This allows a single CPU to appear to run multiple tasks concurrently.
The state that is saved during a context switch typically includes the program counter, CPU registers, memory
Context switching is essential for multitasking and interactive computing. Without it, a computer would only be