DG>Replying to a message of Tim Hutzler to Darryl Gregorash:
TH>>What you are describing is a FIFO, or queue. They both work
TH>>the same in that the first element in will be the first
TH>>element out. Since you mentioned the word, "buffer", then
TH>>I will presume that you are thinking of a FIFO stack.
DG>>You mean "LIFO stack"
TH>No, I should have stated FIFO, period. [grin]
DG>No, the last 2 words.. a FIFO is a queue, a LIFO is a stack :)
No. I ment, "no" as in I shouldn't have had the stack after FIFO. I
*am* refering to FIFO, however. I just goofed when I said "stack."
DG>But do we really know if he wants a Q or a stack??
Yes, he was suffiently descriptive in what he wanted. He talked about
a "buffer" where bytes would go in and move to the top. What he was
unclear about was whether he wanted a synchronous (shifting) type of
FIFO where a certain amount of time goes by before the data going in
comes out. This is useful for delay relay type of apps.
What I think he wants, though, is a buffer; where data going in is
immediately available fro reading.
TH>>Also, when you stated. "Any data that could not fit in the
TH>>buffer would fall off the top."
DG>>That is how a UART operates :)
TH>That may be how UART, but IART different... [grin]
DG>Yeah, but UARnT me :)
best regards... [grin]
___ Blue Wave/QWK v2.12
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)
|