Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Originally posted by Paul Anil:
What your saying is correct only if you lock the whole database itself (all the rows) for each client request
Originally posted by Matthew Comer:
Harry,
HOWEVER, what if another client attempts to modify without calling lock(record)? Since you don't know which client locked the record, your write routines can't be sure that the correct client is writing the record.
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Originally posted by Harry Lufei:
Paul and Matthew:
Thanks for your replies,
I design a method(say) bookSeat() of Remote Object,when a client want to book some seat. it will call this method:
public String bookSeat(int recNo, int seatNumber){
Lock(recNo);
modify..
Unlock(recNo);
}
Rainer<br />SCJP, SCJD, SCWCD
Never be satisfied with anything less than the best and you will surely pass the test...
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Originally posted by morgan bath:
Do we have to make out assignments hacker proof and moronic programmer proof?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Morgan
SCJP (1.4), SCJD (1.4), SCWCD (1.3), SCBCD (1.3)
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |