A system processes data corresponding to multiple data streams. The system
includes multiple queues that store the data, stream-to-queue logic,
dequeue logic, and queue-to-stream logic. Each of the queues is assigned
to one of the streams based on a predefined queue-to-stream assignment.
The stream-to-queue logic identifies which of the queues has data to be
processed. The dequeue logic processes data in the identified queues. The
queue-to-stream logic identifies which of the streams correspond to the
identified queues.