Last active
September 6, 2019 06:46
-
-
Save MishraKhushbu/f961ae168169c61a273642203f032634 to your computer and use it in GitHub Desktop.
Threading Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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