Synchronization
Illustrate synchronization and why is it stated as important?
Expert
In respect to multithreading, Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only a single thread can access a specific resource once. In non-synchronized multithreaded application, it is possible for a single thread to change a shared object when other thread is in process of using or updating object's value. Synchronization avoids such kind of data corruption that may else lead to dirty reads and significant errors.Like that: synchronize a function:
public synchronized void MethodA () {
// method code.
}
Like that: synchronize a block of code in a function:
public MethodB (){
synchronized (this) {
// synchronized code here.
Elaborate Bean Factory?Briefly.
Differentiate between Java Mail and JMS Queue ?
Elaborate asynchronous messaging?briefly.
Is it possible that Java object can be locked down for exclusive use by a given thread?
Differentiate between Bean Factory and Application Context?
Differentiate between durable and non-durable subscriptions?
Briefly describe the state of deadlock?
Illustrate the features of Spring ?
What do you mean by a pointer and does Java support pointers?
Illustrate JDBC abstraction and DAO module?
18,76,764
1943485 Asked
3,689
Active Tutors
1419786
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!