Skip to content

Add the answer for Concurrency vs Parallels #17

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hieubz
Copy link

@hieubz hieubz commented Feb 15, 2023

No description provided.

Copy link
Owner

@tamhoang1412 tamhoang1412 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hieubz , thank you for your PR. I left some comments below.

@@ -84,7 +84,18 @@ Child process cannot change variables of its parent.

## Concurrency vs Parallels? (in case single CPU core and multiple CPU cores)

To be defined.
Concurrency: executing multiple tasks at the same time but not necessarily simultaneously.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on Cambridge Dictionary, simultaneously = happening or being done at exactly the same time
image

So this sentence:

executing multiple tasks at the same time but not necessarily simultaneously.

is kinda confusing.

To be defined.
Concurrency: executing multiple tasks at the same time but not necessarily simultaneously.

Parallelism: means that an application splits its tasks up into smaller subtasks which can be processed in parallel, for instance on multiple CPUs at the exact same time.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, application, subtasks and processed are not the right choices of words. We are talking about OS, where words like applicaion, process, task have their own specific meaning.
And in parallel causes confusion also. It's like one is asked to distinguish between red and blue, and his answer is "red is red, while blue is blue".

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

Successfully merging this pull request may close these issues.

2 participants