Skip to content

Commit f324162

Browse files
committed
Parallel: exercises after first session
1 parent 931dbe3 commit f324162

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/day4/parallel.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ Exercises
490490
and second a parallel version of it. To see the effects of your parallel implementation, you can run the summation up to ``n=1e8``.
491491

492492
.. hint::
493-
493+
:class: dropdown
494+
494495
Use shared arrays of multiprocessing package to store the partial summations from each process:
495496

496497
.. code-block:: python
@@ -506,7 +507,8 @@ Exercises
506507
can be accessed by each process through the ``processindex`` variable.
507508

508509
.. solution:: Solution
509-
510+
:class: dropdown
511+
510512
.. code-block:: python
511513
512514
import sys

0 commit comments

Comments
 (0)