Thread is a lightweight
Process. Each thread has its own local variables, program counter, and its life
cycle independent on other threads.
Why to use
Threads
a.
To
make the User Interface more responsive
b.
To
utilize the resources efficiently
c.
To
take the advantage of multiprocessor systems
d.
To
perform background processing tasks
e.
To
perform other operations, while one operation is waiting for I/O, or blocked
etc.,
No comments:
Post a Comment