Java Interview Questions and Answers

 

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

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.

Posted by:Richards