When you will synchronize your code?
Answers were Sorted based on User's Feedback
synchronize is used on objects that will be used by
multiple threads to provide thread safety. It is used so
that concurrent threads get valid access to data to perform
their actions
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devarathnam c,kotagudibanda(po
Hi... If your code requires "Thread-safty" ,and to avoiding
deadlocks,when u want maintain dataintegrity.
| Is This Answer Correct ? | 0 Yes | 0 No |
when we applied start()method on a thread ,how does it know that to execute run()method on that object?
How can a dead thread be restarted?
What method is used to create the daemon thread?
Howmany interfaces are used in RMI?
what's the main difference between unix os and linux os?
Name the method to find, if a thread is active or not?
What are the oops concept?
What is the difference between static and non-static with examples?
how convert java file to jar files?
Is the session factory thread safe?
whether the connectionpooling used in struts?
whats is mean by class.forName() whats the return type of class