Tut 9
Tut 9
Tutorial 9
Tutorial 9
Threads
Agenda
• Threads
• Basics
• POSIX Threads Library
• POSIX Thread System Calls
• Thread Synchronization
• MUTEX
Threads
What are threads?
• A thread, also called a lightweight process, is a flow of control that can execute in
parallel with other threads in the same program.
• A traditional or heavyweight process is equal to a task with one thread.
• As an OS may support multiple processes, a process can have multiple threads.
Thank You!