Skip to content

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.

## 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