Answer Posted / john noah
In a single threaded system program executes in a sequence
line by line. Multithreaded system can allow multiple
threads to execute a program parallel in multiple instances.
If there is any part of code dealing with the object data
modification, there is no guarantee that it will not be
attempted any more than one thread at a time.
there's a need to make sure that such kind of code should be
executed exclusively. To achieve this in Java we a concept
of LOCK. Using Lock mechanism thread holds complete hold on
an object and object is also can not be access any other
thread except the thread holding that lock. Lock is an
object level control and one thread only can hold it at a time.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Why static functions are used?
What is getkey () in java?
What does main method?
What do you mean by order of precedence and associativity?
What is the byte range?
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
What is bitwise complement?
Why we do exception handling in java and how many types of exceptions are there?
Explain wrapper classes in java?
What is the use of put method?
Is static a singleton?
Explain oops concepts in detail?
What is the purpose of a volatile variable?
What is number data type?
What is a literal coding?