An open API service indexing awesome lists of open source software.

https://github.com/thevickypedia/functional_programming

This program provides a basic understanding of how threadpool, multithreading and multiprocessing works in python.
https://github.com/thevickypedia/functional_programming

concurrent-futures multiprocessing multithreading threadpoolexecutor

Last synced: 2 months ago
JSON representation

This program provides a basic understanding of how threadpool, multithreading and multiprocessing works in python.

Awesome Lists containing this project

README

        

# Functional Programming

This program provides a basic understanding of how multithreading and multiprocessing works in python.

#### Code Explanation:
Comparison between [ThreadPoolExecutor](https://github.com/thevickypedia/functional_programming/blob/master/main.py#L8-L20),
[Multiprocessing](https://github.com/thevickypedia/functional_programming/blob/master/main.py#L23-L43) and
[Multithreading](https://github.com/thevickypedia/functional_programming/blob/master/main.py#L46-L66). All three the functions are set to run
with number of cpu cores in a machine and dummy loop through 50 million times.
You can also alter these to run with any numbers.

The whole point of this project is to explain how different functional programming concepts work. The intention is
not to prove one over the other as that depends on various other factors. Most concepts here are extremely
useful for web crawling and I/O handling applications.

Please refer the [wiki](https://github.com/thevickypedia/functional_programming/wiki) page for detailed description of the code.