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

Question
--------

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

Solution
--------

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

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

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





.. seealso::

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