✏️ Explanatory Question

How does multi-threading take place on a computer with a single CPU?

👁 947 Views
📘 Detailed Answer
💡

Answer with Explanation

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.