Jump to content

Command queue

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Kvng (talk | contribs) at 14:52, 12 November 2024 (rm empty section). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

[edit]

See also

[edit]