[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synchronization




: What I mean is: in a function, when a variable reads the content
: of a channel (x =<- c) the thread will block until a value is sent across
: c, thus synchronizing the two threads (the one that writes to c, and the
: one that reads from c).

why does the writer to a channel block? if one /needed/ to halt the writer one could use a second channel to signal the read, but is there a reason why the current behaviour should be the default?

just curious...

jdm