Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency vs parallelism? #384

Closed
shmerl opened this issue Jan 14, 2018 · 3 comments
Closed

Concurrency vs parallelism? #384

shmerl opened this issue Jan 14, 2018 · 3 comments

Comments

@shmerl
Copy link

shmerl commented Jan 14, 2018

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.

@budziq
Copy link
Collaborator

budziq commented Jan 18, 2018

Hi @shmerl. If you have clear idea on how to improve the chapter I'm up for discussion or PR's ;)

@AndyGauge
Copy link
Collaborator

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.

@AndyGauge
Copy link
Collaborator

If you would like to reopen this issue, feel free, but there have been significant changes to to wording in #404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants