Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. What will happen if two thread of same priority are called to be processed simultaneously?
  2. 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.

    View Answer

    Workspace

    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