Discussion :: JAVA MCQs
- What will happen if two thread of same priority are called to be processed simultaneously?
A.
Any one will be executed first lexographically
|
B.
Both of them will be executed simultaneously
|
C.
None of them will be executed
|
D.
It is dependent on the operating system.
|
Answer : Option D
Explanation :
In cases where two or more thread with same priority are competing for CPU cycles, different operating system handle this situation differently. Some execute them in time sliced manner some depending on the thread they call.
Be The First To Comment