Skip to main content

Dequeue Programming

  • Chapter
Data Structure Programming

Part of the book series: Undergraduate Texts in Computer Science ((UTCS))

  • 843 Accesses

Abstract

A queue is a structure into which we can insert items at one end and remove them from the other. It has the property that the next item removed is the one that has been in the container for the longest amount of time. This is called first-in first-out (FIFO) storage. Queues are used internally in computer operating systems to manage many resources, such as current users. Since there is only a single CPU on most systems, only one user process can be active at a time. When the currently executing process gets interrupted, it is put into the user queue (an enqueue operation) and another process is removed (dequeued) and allowed to run. This guarantees that each process gets its turn to execute.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1998 Springer Science+Business Media New York

About this chapter

Cite this chapter

Bergin, J. (1998). Dequeue Programming. In: Data Structure Programming. Undergraduate Texts in Computer Science. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-1630-8_6

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-1630-8_6

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-7223-6

  • Online ISBN: 978-1-4612-1630-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics