A

Admin • 828.03K Points
Coach

Q. What does the `Thread.yield()` method do?

  • (A) Terminates the thread
  • (B) Sleeps the thread for a second
  • (C) Allows other threads of equal priority to execute
  • (D) Blocks the thread

Explanation by: Admin
`yield()` is a hint to the scheduler to give other threads of equal priority a chance to run.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.