Skip to content

Instantly share code, notes, and snippets.

@MishraKhushbu
Last active September 6, 2019 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MishraKhushbu/f961ae168169c61a273642203f032634 to your computer and use it in GitHub Desktop.
Save MishraKhushbu/f961ae168169c61a273642203f032634 to your computer and use it in GitHub Desktop.
Threading Module
Multiprocessing Vs Multithreading :
Multiprocessing is when the part of program can be executed by separated processes.
The cost of multiprocessing is really high.
MultiThreading:
The main program is divided into sub threads.
Here to decide the number of thread is a big challenge , taking more number of threads can deduce ur latency since
thread concurrency has limit , after a limit it slows down the process.
Thumb rule is
no. of threads = number of cpu cores +1
Link: https://www.youtube.com/watch?v=MM7ILIoKz28 ====>python multithreading by durga sir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment