[erlang-questions] queues (previously: documentation of data structures)
Andreas Hillqvist
andreas.hillqvist@REDACTED
Tue Dec 11 14:40:36 CET 2007
I saw a bug in your code: myqueue:delete/1 dose not stop the queue process.
Kind regards
Andreas Hillqvist
2007/12/11, Andras Georgy Bekes <bekesa@REDACTED>:
> Why having a process for each queue entry???
> Ok, you can change a specific element once you've put on the
> queue, but you probably don't want that.
>
> Why not just use the message queue of Erlang?
> (see attached module --- very simple)
>
> Pros:
> - one process for each queue
> - same efficiency as the message queues of the VM
> (hope you're satisfied with that)
> - works when several processes use a common queue
>
> Cons:
> - copies each queued element twice (just like your solution)
> - ???
>
> Georgy
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
More information about the erlang-questions
mailing list