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

Difference between swing and awt?

608


which book is better for jdbc ,servlets and jsp

1650


Have you used threads in Servelet?

1934


Are we allowed to change the transaction isolation property in middle of a transaction?

569


Why are my checkboxes not being set from on to off?

650






AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1646


Write a program to show synchronization?

696


Describe, in general, how java's garbage collector works?

540


What is scalable, portability in the view of J2EE?

1879


Is “abc” a primitive value?

619


When a thread blocks on i/o?

573


Why a component architecture for the java platform?

582


Are there books about seam?

636


Should synchronization primitives be used on bean methods?

558


What is message driven beam?

585