On Nov 17, 2009, at 9:02 PM, Guy Hulbert wrote:
According to this thread, it can be done in O(1):
http://groups.google.com/group/golang-nuts/browse_thread/thread/
3ba2157b3259ee54/410a3c8c187b1bf7?lnk=raot
In that thread Russ Cox wrote:
It is okay for a channel to have many writers.
In this case I think you can just have N goroutines
each reading from a specific channel and writing
to a shared channel. The main goroutine just reads
the one channel.
This is exactly what my code sketch does.
Andrew
[email protected]
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless