A

Admin • 831K Points
Coach

Q. Which queue is suitable for message-passing between threads?

  • (A) PriorityQueue
  • (B) LinkedList
  • (C) SynchronousQueue
  • (D) ArrayDeque
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Queue

Explanation by: Admin
`SynchronousQueue` is ideal for thread-to-thread handoff without internal buffering.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.