From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e105067bce4d170b X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: What is a queue? Date: 1999/02/10 Message-ID: <36C19EBE.FF25D409@spam.innocon.com>#1/1 X-Deja-AN: 442820956 Content-Transfer-Encoding: 7bit References: <36accbc1.0@news.mountain.net> <79q1qc$blj@top.mitre.org> Content-Type: text/plain; charset=us-ascii Organization: Innovative Concepts, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-10T00:00:00+00:00 List-Id: Michael F Brenner wrote a long message about queues, which he defined as having such operations as Add_To_Left and Add_To_Right. All additions to a queue go on the tail, and all removals come from the head. A structure which allows additions and removals from both ends is a dequeue (pronounced deck). The concept of a queue comes from the way people engage in ordered waiting for something, such as service from a teller at a bank. The first person to arrive is served and the others wait in order. Most non-American English speakers call this collection of waiting people a queue, and say the people are standing in a queue. Americans call it a line, and say the people are waiting in line. Of course, people waiting in [a queue | line] behave more like a list than a (software) queue because people can leave the queue from any position at any time, sometimes people cut in ahead of the tail of the queue, and so on. Brenner gives a derivation of the word queue from mathematical diagrams; however, I think this is incorrect. Queue derives from the French word queue, which means tail and predates the diagrams in question. -- Jeff Carter E-mail: carter commercial-at innocon [period | full stop] com "You tiny-brained wipers of other people's bottoms!" Monty Python & the Holy Grail