Monday, December 19, 2011

Benefits of multithread


Benefits of multithread :-
The benefits of multithreaded programming is:
1. Responsiveness:- Multithreading an interactive application may allow a
program to continue running even if part of it is blocked or is performing
a lengthy operation, thereby increasing responsiveness to the user.
2.Resource sharing :-It allows an application to have several different threads of activity all within the same address space.
3.)Economy:-Due to cost of memory ,it is more economical to create and context switch threads.
4. Utilization of multiprocessor architectures: - A single-threaded
process can only run on one CPU,Multithreading on a multi-CPU machine increases concurrency.

   On single processor machine ,multithreading can help where:-i)some task tales much longer to execute than other .
ii)some task need a better deterministic outcome than other.
iii)some user interface activity is to be run concurrently with hardware communication.

No comments:

Post a Comment