[Stackless] Google's new Go programming language

Andrew Dalke dalke at dalkescientific.com
Tue Nov 17 21:54:16 CET 2009


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
				dalke at dalkescientific.com






More information about the Stackless mailing list