Multitasking increases the efficiency of the CPU and utilizes resources in a better manner. Threads are the best way to implement multitasking. A process can contain more than one thread to implement multitasking.
- Perform a task with a single thread
- Perform multiple tasks with multiple threads
- Use mutex to share data between threads
- Understand how a deadlock is created
- Avoid a deadlock