TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: DARRYL GREGORASH
from: JAMES VAHN
date: 1998-01-19 19:06:00
subject: Re: circular buffer

>  JV> I don't think you described a circular buffer..  
>  JV> Whadya mean: 'buffer is empty' head=tail ?  
>  JV> That's a stacked buffer. 
> 
> Ummm.. a stack _is_ a LIFO buffer.. you read from and write to the stack
> using the "head" pointer. If you re-read, I said "write at the tail, read
> from the head", and that is a FIFO buffer, a queue.
LIFO,FIFO... the thing is in a circle. What if I'm reading at the middle
of it and a byte comes in?  Always drop it on the oldest byte, reading
has nothing to do with that. You're going to need some more pointers. 
--- ifmail-tx (i386 Linux)
---------------
* Origin: 300 miles East of Seattle, WA (1:346/15.1@fidonet)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.