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.
In reply to Re: Use Coro for multi-threads, is this right?
by Corion
in thread Use Coro for multi-threads, is this right?
by ilxl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |