Explain about thread synchronization inside a monitor?
Answer / Mudit Kumar Gupta
Thread synchronization inside a monitor (also known as synchronized blocks) ensures that only one thread can execute a block of code at a time. In Java, when a thread enters a synchronized block for an object, it acquires a lock on the object. Other threads attempting to enter the same synchronized block will be blocked until the first thread exits the block and releases the lock.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the different algorithms used for clustering?
what is default length of textfield ?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Have you used threads in Servelet?
On a computer that having single CPU, how multithreading concept can be achieved?
difference between applicationserver and webserver
difference between HashMap, Hashset and hashTable?
What is RMI architecture?
What is an abstract method?
what is activation monitor and what is its job?
What is a sessionfactory? Is it a thread-safe object?
What is an applet?