Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
oorrja
GitHub Repository: oorrja/learntosolveit
Path: blob/master/source/python/algorithm_pyex_multiprocessing.rst
1241 views
====================
Pyex Multiprocessing
====================

Question
--------

Compute the factorial of a number. Demonstrate use of multiprocessing Pool.

Solution
--------

.. literalinclude:: ../../languages/python/algorithm_pyex_multiprocessing.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_pyex_multiprocessing.py
   :language: python
   :codesite: ideone

Explanation
===========





.. seealso::

   * :python-suggest-improve:`algorithm_pyex_multiprocessing.py`
   * :python-better-explain:`algorithm_pyex_multiprocessing.rst`