kontekstivahetused
Kontekstivahetused, sometimes translated as context switching, refers to the process where a system, particularly a computer's central processing unit (CPU), stops executing one task and begins executing another. This involves saving the state of the current task, which includes its registers, program counter, and other relevant information, and then loading the saved state of the next task. This allows multiple processes or threads to share a single CPU, giving the illusion of concurrent execution.
The overhead associated with context switching is a critical factor in system performance. Each switch requires
In human cognition, context switching also describes the mental process of shifting attention and adapting to