Skip to content

AluBhorta/python-threads-and-processes

Repository files navigation

Python Threads & Processes

Project for demonstration of usage of threads and processes using the fantastic concurrent.futures module (which provides a high-level interface for asynchronous task execution) as compared to the standard multiprocessing and threading modules.

You should:

  • Use Multiprocessing for: CPU bound tasks - compute intensive

  • Use Multithreading for: I/O bound tasks - network, file operations

  • loops/lists should be iterated within the executor context manager (with _ as _: ) iteratively running executor.submit or within executor.map. No point in iterating over loops/lists outside the context manager.

Further Resources

Deps

  • python 3.6
  • virtualenv

About

Project for demonstration of threads and processes in Python. 🧶

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages