·
A
multithreaded program contains two or more parts that can run concurrently.
Each part of such a program is called a thread.
·
Threads are separate tasks running within a
program.
Need
for Multithreading:
·
Have
you faced the following situations?
o
The
browser cannot skip to the next web page because it is downloading a file?
o
You
cannot enter text into your current document until your word processor completes
the task of saving the document to disk.
·
If the program consists of a single thread, it can
handle only one activity at a time, which results in the above situations.
·
To handle such situations effectively,
multithreaded programming has been developed.
No comments:
Post a Comment