Multi-Threading and S A thread is a stream of control within an application that executes a sequence of instructions.
Traditional applications have single thread.
A multi-threaded application consists of one or more threads that execute concurrently . On a single processor machine, the threads are shceduled by a library or by the kernel to run in different time slices. On multi-processor machines two ormore threads can be executing simultaneously as scheduled by the kernel. The benefit of threads is clear on a multi-processor machine. Potentially, a task made can be divided into subtasks, each of whih is executed on its own processor and the time taken to complete the overall task reduced.