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.
- Host: GitHub
- URL: https://github.com/thevickypedia/functional_programming
- Owner: thevickypedia
- Created: 2020-07-31T15:33:08.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T21:39:05.000Z (over 4 years ago)
- Last Synced: 2025-02-12T22:22:44.449Z (4 months ago)
- Topics: concurrent-futures, multiprocessing, multithreading, threadpoolexecutor
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.