diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-06-17 12:39:57 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-06-17 12:39:57 -0700 |
commit | fb9d412e307c36a240568c1659187fb430916731 (patch) | |
tree | 4b77968aa2891636cf77579f4f165b1c013dff4f | |
parent | 9ca4fdbfd7e6c7a2f5969724196ddd6a3cf5ea89 (diff) | |
download | perfbook-fb9d412e307c36a240568c1659187fb430916731.tar.gz |
questions/concurrentparallel: Add logical/physical perspective
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | appendix/questions/concurrentparallel.tex | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/appendix/questions/concurrentparallel.tex b/appendix/questions/concurrentparallel.tex index 0ffc1119..016acab2 100644 --- a/appendix/questions/concurrentparallel.tex +++ b/appendix/questions/concurrentparallel.tex @@ -88,16 +88,23 @@ perspective and ``parallel'' by many taking the second perspective. deadlock. }\QuickQuizEnd +A third perspective considers concurrency to a logical manifestation of +the cource code and parallelism to be a physical manifestation of running +that code on actual hardware. +This perspective might have the virtue of being easy to teach, but +it seems to be a bit lacking from a practical viewpoint. + Which is just fine. -No rule that humankind writes carries any weight against the objective -universe, not even rules dividing multiprocessor programs into categories -such as ``concurrent'' and ``parallel''. +No perspective that humankind might take carries any weight against +the objective universe, not even perspectives dividing multiprocessor +programs into categories such as ``concurrent'' and ``parallel''. -This categorization failure does not mean such rules are useless, -but rather that you should take on a suitably skeptical frame of mind when -attempting to apply them to new situations. -As always, use such rules where they apply and ignore them otherwise. +This categorization failure does not necessarily mean such perspectives +are useless, but rather that you should take on a suitably skeptical +frame of mind when considering whether or not to attempt to apply them. +As always, use a give perspective where it applies and ignore it otherwise. -In fact, it is likely that new categories will arise in addition +In fact, it is likely that new perspectives will arise in addition to parallel, concurrent, map-reduce, task-based, and so on. -Some will stand the test of time, but good luck guessing which! +Some will stand the test of time, and some will not. +In the meantime, good luck guessing which is which! |