You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The chapter on concurrency uses it interchangeably with parallelism which makes it somewhat confusing. Concurrency usually focuses on splitting some task into chunks of execution, that can progress concurrently (but not necessarily purely in parallel). I.e. you can have one thread performing concurrent tasks and interrupting / jumping between them (like with coroutines). Parallelism on the other hand means real parallel execution (threads) when those tasks progress literally at the same time. Some scenarios can combine both parallelism and concurrency together.
May be these two concepts should be more clearly delineated and examples should cover both.
The text was updated successfully, but these errors were encountered:
I'm not a computer science major, so I often make mistakes when I try to correct terms. I have broken the chapter into 2 series with #404 You can see the parallel tasks series within the concurrency chapter here: http://www.yetanother.site/rust-cookbook/concurrency.html Let me know if there's improvements to be made.
The chapter on concurrency uses it interchangeably with parallelism which makes it somewhat confusing. Concurrency usually focuses on splitting some task into chunks of execution, that can progress concurrently (but not necessarily purely in parallel). I.e. you can have one thread performing concurrent tasks and interrupting / jumping between them (like with coroutines). Parallelism on the other hand means real parallel execution (threads) when those tasks progress literally at the same time. Some scenarios can combine both parallelism and concurrency together.
May be these two concepts should be more clearly delineated and examples should cover both.
The text was updated successfully, but these errors were encountered: