Coroutines
Coroutines
Posted May 9, 2012 18:51 UTC (Wed) by juliank (guest, #45896)In reply to: Coroutines by hanwen
Parent article: nPth - The new GNU portable threads library
Goroutines are transparently moved across threads, and work correctly, as long as you do not access shared memory (which you should not do).
Posted May 11, 2012 13:43 UTC (Fri)
by hanwen (subscriber, #4329)
[Link]
Coroutines
well, you need synchronization. Either channels or locks. A coroutine which does not synchronize at all may be optimized to not run at all, according to the spec.