This repo contains my practice tasks for python threading.
There are 3 threads created named
- Thread1
- Thread2
- Thread3
- prints acknowledge statement
- waits for 2 seconds
- wakes up
- prints acknowledge statement
- waits for 1/2 seconds
- wakes up
- prints acknowledge statement
- waits for 2 seconds
- wakes up
- starts threads
- sleeps for 5 seconds
- wakes up
- Threads are executed in the same process
- Threads share memory
- They have same Process IDs
- When a thread is idle, process executes some other threads e.g. When parent thread was sleeping, Thread1 started its execution.