reading comprehensive - interleaving

kanewolf

Titan
Moderator
What is interleaving in the context:
"Multitasking involves overlapping and interleaving the execution of several programs."
In:
https://www.britannica.com/technology/multitasking
Interleaving -- switching between tasks in time. Task 1 executes then task 2 executes then task 1 executes again. These swaps can happen because the time allowed has expired or an interrupt like I/O is required. The CPU stops executing task 1 and executes task 2. Think of it like looking down at your fingers when they are interleaved.
 
  • Like
Reactions: shaharhada