DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions