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

What is the difference between system.out ,system.err and system.in?

685


What must a class do to implement an interface?

669


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1836


Where can I find seam examples and documentation?

649


How can I avoid validating a form before data is entered?

632






What is difference between object state and behavior?

678


What are the benefits of detached objects?

673


What event results from the clicking of a button?

789


Difference between DurableSubscription and non- DurableSubscription?

1803


Can you give me a simple example of using the requiredif validator rule?

713


Define the remote object implementation?

2074


How is a java object message delivered to a non-java client?

655


What are the design considerations while making a choice between using interface and abstract class?

618


What do you know about seam?

690


How are the elements of a cardlayout organized?

678