I read the article
http://blog.alexnesterov.com/post/coroutines/, on the basis of which I reached conclusions, you can confirm or deny?
Сonditions:
Four tasks that do not require synchronization (reads local file, uploads it to some server and returns back to a client URL of the uploaded file).
One core cpu:
1. Pool of four threads is theoretically less effective than coroutine in single thread (thread creation and scheduling is expensive, but parallel execution impossible).
2. Coroutine with Pool of four threads is theoretically less effective than Сoroгtine in single thread (thread creation and scheduling is expensive, but parallel execution impossible).
Multiple core cpu:
1. Pool of four threads is theoretically more effective than coroutine in single thread (parallel execution is possible, but thread creation and scheduling).
2. Coroutine with Pool of four threads is theoretically more effective than coroutine in single thread (parallel execution is possible, but thread creation and scheduling).