"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
If you have two conseuctive requests from different clients, then they may also be handled by different threads, or the same thread. If two requests are concurrent, then they can't simultaneously be handled by the same thread. But the system may simply make one request wait while the other is being handled; then handle the remaining request, all using one thread. Or it may use two different threads to handle the requests simultaneously. The RMI spec is deliberately vague about this because they wanted different implementors to have the freedom to choose whatever strategy they found most effective.
So...If my function book() works in one thread, and another book() in the same thread, and both locks records, which one will do unlock()?,
"I'm not back." - Bill Harding, Twister
If two requests are concurrent, then they can't simultaneously be handled by the same thread.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |