Java Threads Question:

Download Job Interview Questions and Answers PDF

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

Java Threads Interview Question
Java Threads Interview Question

Answer:

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.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What is deadlock?What are synchronized methods and synchronized statements?