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
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.
No description provided.
The text was updated successfully, but these errors were encountered: