Originally posted by Zhi Gang:
thanks for reply max.
In page 126 a diagram with a description
"multithreaded DVDDatabase object"
In page 127 a diagram with a description
"Single DVDDatabase object"
it sound like the single DVDDatabase object is much more thread-safe then the multithreaded DVDDatabase object. and i don't undersatnd why it choose to use multithreaded DVDDatabase object.
For the same reasons that you would multithread anything: it makes the customer experience better. For example, the multithreaded approach allows different customers to use different records at the same time, while the single threaded ques them up(mind you, it's a short que).
2. IF i am Using RMI, does it still matter where i use multithreaded DVDDatabase object? RMI will only create one instances anyway? ( i might be dull )
No, it still matters. RMI will create as many instances as you tell it to.
thanks for your help ..
by the way, i love your book ^_^ it helps alot.
Hell, don't tell me, review it on Amazon

.