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

Add table differentiating types of concurrency #40

Open
frozenfrank opened this issue Dec 13, 2024 · 1 comment
Open

Add table differentiating types of concurrency #40

frozenfrank opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@frozenfrank
Copy link
Contributor

No description provided.

@frozenfrank frozenfrank self-assigned this Dec 13, 2024
@frozenfrank
Copy link
Contributor Author

Here is one misconception that arises from the current mixing of meanings of "concurrent." Emphasis added to highlight misunderstanding.

QUESTION: A system has four processes executing on a single CPU core, interleaving their execution in arbitrary order. Is this an example of concurrency, parallelism, or both? Explain how each is or is not being used.
ANSWER: t is concurrent: Because they are executed in arbitrary order, this implies concurrency. If order mattered, then it would not be concurrent
It is not parallel: Because there is only a single CPU core, you have the illusion of parallel-ness, since it swaps between the 4 tasks incredibly quickly. However, they are not happening at the exam same time, since their execution is being interleaved, not simultaneous.

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

1 participant