Answer Posted / nag~1417
Threads also have some disadvantages:
Threads are not reusable as they are dependent on a process
and cannot be separated from the process.
Threads are not isolated as they don't have their own
address space.
The error cause by the thread can kill the entire process
or program because that error affects the entire memory
space of all threads use in that process or program.
Due to the shared resources by the threads with in the
process can also affect the whole process or program when a
resource damage by the thread.
For concurrent read and write access to the memory thread
will required synchronizations. Data of the process can
easily damage by the thread through data race because all
the threads with in the process have write access to same
piece of dat
| Is This Answer Correct ? | 35 Yes | 2 No |
Post New Answer View All Answers
Where can I ask questions and make suggestions about seam?
What is the purpose of the wait() method?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
How task's priority is used in scheduling?
What is bean? Where can it be used?
What is the difference between the session.update() method and the session.lock() method?
whats is mean by tiles in struts
Explain the steps in details to load the server object dynamically?
What are the design considerations while making a choice between using interface and abstract class?
What is metaspace?
What is permgen or permanent generation?
Is the session factory thread safe?
What is threadfactory?
Why won’t the jvm terminate when I close all the application windows?
What are the purpose of introspection?