A

Admin • 802.91K Points
Coach

Q. Which of the following can be used to limit access to a resource to only one thread at a time?

  • (A) Thread
  • (B) Semaphore
  • (C) synchronized
  • (D) volatile

Explanation by: Admin
`synchronized` ensures mutual exclusion for critical sections of code.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.