Home » JAVA Programming » Multithreading » Question
  1. What will happen if two thread of the same priority are called to be processed simultaneously?
    1. Both of them will be executed simultaneously
    2. Anyone will be executed first lexographically
    3. It is dependent on the operating system
    4. None of them will be executed
    5. All of above
Correct Option: C

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.



Your comments will be displayed only after manual approval.