in reply to Use Coro for multi-threads, is this right?

Coro implements cooperative multitasking/multithreading with explicit task switching, while threads implements scheduled multitasking/multithreading. If you don't know the difference, maybe Multithreading explains it in a different way.

The advantage of Coro is that you don't get any race conditions. The advantage of threads is that you can get true parallelism across more than one CPU.

  • Comment on Re: Use Coro for multi-threads, is this right?