what is disadvantage of thread?

Answers were Sorted based on User's Feedback



what is disadvantage of thread?..

Answer / 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

what is disadvantage of thread?..

Answer / sehrish

IF ANY THREADS HAS PROB IT DISTRUBS WHOLE PROG AND IN
MULTITHREADING IT IS IMP TO TAKE GREAT CARE OF TIMMING

Is This Answer Correct ?    8 Yes 1 No

what is disadvantage of thread?..

Answer / niravan

threads :- all we know that -------
threads is a single line programe that run'S with entire
if any coding with threads are wrong then that entire
programe will be create a error durinG ruN time.

dis is the basic disadvantages of thread handling
programe....

Is This Answer Correct ?    11 Yes 6 No

Post New Answer

More Advanced Java Interview Questions

what's the main difference between unix os and linux os?

2 Answers   TCS,


How to do registration form using struts and hibernate?

1 Answers  


How substring() method of string class create memory leaks?

0 Answers  


Why does most servlets extend HttpServlet?

4 Answers   Accenture, Wipro,


advantage of thread?

3 Answers   HCL,






can a static method be overridden

41 Answers   IBM, SolutionNET,


What is the highest-level event class of the event-delegation model?

0 Answers  


What are the different class loaders used by jvm?

0 Answers  


What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference. (Note : Pls ignore syntx errors) public class One { sop ("Into One--"); } public class Two extends One{ sop ("Into Two--"); } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(One.a); sop(Two.a); sop(One.t); sop(Two.t); } }

2 Answers   Wipro,


what is the use of Object Factories?

1 Answers  


can any one tell me how to learn good coding techniques

3 Answers  


which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based

1 Answers  


Categories