How does multithreading take place on a computer with a single CPU?

Q

How does multithreading take place on a computer with a single CPU?

✍: Guest

A

The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.

2012-12-14, 2041👍, 0💬