|
|
|
|
|
by anon4
4443 days ago
|
|
Don't you still need to carefully use locks everywhere? For me the one reason to use coroutines instead of regular threads is that coroutines are cooperative multitasking, rather than preemptive. Which is what I want for when I have a bunch of concurrent but not parallel processes working on shared data. |
|
I'd need one lock per actor thread and its communication object.
I say again, this works in my problem domain, and probably wouldn't work in other domains.