What Multithreading?

What Multithreading?

Previous Home Next

 

. Multithreading enables you to write programs that contain two or more separate paths of execution that can execute concurrently. 

Each path of execution is called a thread. Through the careful use of 
multithreading, you can create programs that make efficient use of 
system resources and maintain a responsive
user interface.

Multithreading is a technique that allows a program or a process to execute many tasks concurrently (at the same time and parallel). It allows a process to run its tasks in parallel mode on a single processor system
 Advantages of multithreading

    1.Context switching between threads is usually less expensive than between processes.    
     2.Threads share the same address space so it saves the memory.
     3.Reduces the computation time.
     4.Cost of communication between threads is relatively low.
     5.Improves performance of an application.


 

Previous Home Next