Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. What is synchronization in reference to a thread?
  2. A.
    It's a process of handling situations when two or more threads need access to a shared resource.
    B.
    Its a process by which many thread are able to access same shared resource simultaneously.
    C.
    Its a process by which a method is able to access many different threads simultaneously.
    D.
    Its a method that allow to many threads to access any information require.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    When two or more threads need to access the same shared resource, they need some way to ensure that the resource will be used by only one thread at a time, the process by which this is achieved is called synchronization


Be The First To Comment