what is disadvantage of thread?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is the diffrence between a local-tx-datasource and a xa-datasource?
what is the difference between System.out.println and out.println in java
What state does a thread enter when it terminates its processing?
What are the different types of exception?
Is the infobus client side only?
What is in-memory replication?
How many times may an objects finalize() method be invoked by the garbage collector?
How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration
What are different types of layout managers in java.awt package?
Which container method is used to cause a container to be laid out and redisplayed?
How do you iterate in Hashmap?
What are the different class loaders used by jvm?