Threading in Python
Threading is one of best feature of programming language to perform multiple jobs at sametime.It’s one kind of parallely task which means you can run another task while one is going on.
Let’s take real time example of kitchen , you put eggs in your microwave to boil while it gettings ready you can collect dishes and spoon , arrange it on table , meanwhile microwave will stop when it complete it jobs.
This is threading !!! 🙂
You’re human so you can think but what about machine ?
Think :: You’re machine then how your mind treat you for instruction. Let’s take think for “Tea Making”
Now start thinking …
In programming terms you are running multiple jobs under main thread , each process has there own thread id once job done by child thread it terminate it’s current thread.
Now let’s dive into thread practical programming.
Please dont copy/paste write it your own so can understand it
– Source : https://pythonlabs.wordpress.com/2015/05/29/threading-in-python/
– Author : Nirav Trivedi (Python Developer)