| Author |
Synchronization
|
Krishna Srinivasan
Ranch Hand
Joined: Jul 28, 2003
Posts: 1803
|
|
how can we acheive synchronization for service method in the servlet class. if we r using SingleThreadModel, performance will be low than any other method to achieve that? advance thanx.
|
Krishna Srinivasan
OCAJP Mock Questions
|
 |
Idly Vada
Ranch Hand
Joined: Sep 02, 2003
Posts: 135
|
|
|
Instead of making the entire service method synchronized, enclose only the code that needs to be synchronized in a synchronized block.
|
 |
 |
|
|
subject: Synchronization
|
|
|