architecture - Difference between a "coroutine" and a "thread"? - Stack Overflow - 0 views
-
Co stands for cooperation. A co routine is asked to (or better expected to) willingly suspend its execution to give other co-routines a chance to execute too. So a co-routine is about sharing CPU resources (willingly) so others can use the same resource as oneself is using.
-
A thread on the other hand does not need to suspend its execution. Being suspended is completely transparent to the thread and the thread is forced by underlying hardware to suspend itself.
-
co-routines can not be concurrently executed and race conditions can not occur.
- ...8 more annotations...