Threads allow programs to execute simultaneously. A thread is an independent path of execution in a program. These threads can be executed synchronously or asynchronously. All threads have a priority attached. Thread with a higher priority is executed first.
Advantages:
• Allows multiple programs to be executed concurrently
• Cost of thread is low compared to processes in terms of space and communication.
• Threads are lightweight.