what is disadvantage of thread?

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


Please Help Members By Posting Answers For Below Questions

Can I use javascript to submit a form?

612


When a thread blocks on i/o?

565


What is a modular application? What does module-relative mean?

538


What are the different approaches to represent an inheritance hierarchy?

584


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1781






What are the different class loaders used by jvm?

597


Is jvm a overhead?

623


How would you create a button with rounded edges?

560


Is the infobus client side only?

607


Difference between new operator and class.forname().newinstance()?

599


Name three subclasses of the component class?

614


Which container method is used to cause a container to be laid out and redisplayed?

666


Name the eight primitive java types.

593


What is scalable, portability in the view of J2EE?

1872


What is table mutation and how do you avoid it?

1917