How to work with "fifo" in C# .net? (is it possible in .net 3.5 in 4.0?)
+7
A:
FIFO means first-in-first-out. The data structure you're looking for is called a Queue.
Without some more information, your question is unanswerable.
Dave Markle
2010-06-03 13:20:06
yes, or asker meant named pipes: http://en.wikipedia.org/wiki/Named_pipe - named pipe (also known as a FIFO for its behavior)
Andrey
2010-06-03 13:22:07
+5
A:
FIFO means first in first out. This is as opposed to LIFO (or FILO as lucero pointed out). which is last in first out.
A link comparing queues, stacks, and hashtables.
You want to use a queue object for FIFO operations:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=66
MSDN link on queues
And a stack is used for LIFO operations: Stack Link
Kevin
2010-06-03 13:20:45