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 a policy?

1776


How are the elements of a borderlayout organized?

600


How can I scroll through list of pages like the search results in google?

571


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

575


whats is mean by tiles in struts

1622






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

606


how do you Handle Front End Application data against DB with example?

1479


What is aop(assepct oriented programing)?

583


Why a client should be multithreading? Explain.

597


What is the form of storage space in java?

1744


Define aop(assepct oriented programing)?

640


Why are some of the class and element names counter-intuitive?

575


What is bean? Where can it be used?

581


To what value is a variable of the string type automatically initialized?

611


What is scalable, portability in the view of J2EE?

1877