Consider a situation where a client receives packets from a server. There may…

2024

Consider a situation where a client receives packets from a server. There may be differences in speed of the client and the server. Which data structure is best suited for synchronization?

  1. A.

    Circular Linked List

  2. B.

    Queue

  3. C.

    Stack

  4. D.

    Priority Queue

Attempted by 337 students.

Show answer & explanation

Correct answer: B

Answer : B

Explanation: Since packets need to be processed in First In First Out order, a queue can be used for synchronization.

Explore the full course: Coding For Placement