Answer Posted / akshay
If there is a portion of code within a method or the
complete method that can be accessed by multiple threads,
that section of code is called critical section. To make
sure that only one thread can access critical section at a
time, we synchronize critical section. Synchronization is
the keyword to avoid concurrent access to critical section
of the code.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain about local interfaces.
Explain the different types of memory used by jvm?
What is JTS?
What happens when a thread cannot acquire a lock on an object?
What is the difference between the session.update() method and the session.lock() method?
Where can I ask questions and make suggestions about seam?
Can I map more than one table in a cmp?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
What restrictions are placed on the values of each case of a switch statement?
what is an isolation level?
What are the different class loaders used by jvm?
why static class in java
What is the form of storage space in java?
Are enterprise beans allowed to use thread.sleep()?
What is ripple effect?