- Erlang实现一个队列
- 在erlang question邮件列表里,给出了这样的方法:in(Item, Prio, Q) -> gb_trees:insert({Prio,now()}, Item, Q).out(Q) -> gb_trees:take_smallest(Q).peek(Q) -> gb_trees:smallest(Q).The order will be FIFO. If you want LIFO, you could negate the Prio value and ta
更新时间:2008-01-25 14:47:41- 关键字: Erlang 实现 队列
- C#操作消息队列的代码
- 本文简单给出了C#操作消息队列的代码,供大家参考!
更新时间:2007-11-19 10:38:13- 关键字: C# 代码 操作
- 数据结构C语言实现系列——队列
- 数据结构C语言实现系列——队列
更新时间:2007-10-27 10:53:52- 关键字: 数据结构 C语言 队列