Misplaced Pages

Command queue

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Command queue" – news · newspapers · books · scholar · JSTOR (December 2012) (Learn how and when to remove this message)

In computer science, a command queue is a queue that determines when a command is executed, usually by order of priority or on a first-in first-out basis. Instead of waiting for each command to be executed before sending the next one, a program will put all its commands in the command queue, freeing it to perform other functions while the queue is processed by the operating system.

This delegation not only frees the program from handling the queue but can also help optimize execution. For instance, when handling multiple requests from several users, a network server's hard drive can reorder the requests in its queue using the elevator algorithm, which minimizes mechanical movement.

Examples

See also


Stub icon

This computing article is a stub. You can help Misplaced Pages by expanding it.

Categories: