Skip to content

Commit c84e467

Browse files
committed
improved section order in concurrency chapter
Signed-off-by: Konstantin Läufer <laufer@cs.luc.edu>
1 parent 8e086f9 commit c84e467

1 file changed

Lines changed: 26 additions & 28 deletions

File tree

source/60-concurrency.rst

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,32 @@ overlapping computations.
115115
suits distributed and reactive systems; data parallelism suits numerical workloads.
116116

117117

118+
Motivation
119+
~~~~~~~~~~
120+
121+
Why and when do we need concurrency?
122+
123+
- When it is a natural fit for the problem domain
124+
125+
- multiple autonomous behaviors/simulations
126+
- user interfaces: timed events, background activities
127+
128+
- When the technical solution domain requires it
129+
130+
- more efficient use of available resources: asynchronous computing
131+
- graphical user interfaces: queuing of low-level input events
132+
- multi-core systems
133+
- network services/distributed systems
134+
135+
136+
These are some key concurrency considerations:
137+
138+
- physical (parallelism) versus logical concurrency
139+
- speedup and when to expect it
140+
- data parallelism versus task parallelism
141+
- fine-grained versus coarse-grained concurrency
142+
143+
118144
Concurrency vs. Parallelism
119145
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120146

@@ -227,34 +253,6 @@ Discussion
227253
internally to process requests across CPU cores.
228254

229255

230-
231-
232-
Motivation
233-
~~~~~~~~~~
234-
235-
Why and when do we need concurrency?
236-
237-
- When it is a natural fit for the problem domain
238-
239-
- multiple autonomous behaviors/simulations
240-
- user interfaces: timed events, background activities
241-
242-
- When the technical solution domain requires it
243-
244-
- more efficient use of available resources: asynchronous computing
245-
- graphical user interfaces: queuing of low-level input events
246-
- multi-core systems
247-
- network services/distributed systems
248-
249-
250-
These are some key concurrency considerations:
251-
252-
- physical (parallelism) versus logical concurrency
253-
- speedup and when to expect it
254-
- data parallelism versus task parallelism
255-
- fine-grained versus coarse-grained concurrency
256-
257-
258256
Fine-grained vs. Coarse-grained Concurrency
259257
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
260258

0 commit comments

Comments
 (0)