Jun Gao

Greenhorn
+ Follow
since Nov 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jun Gao

I'd like to know how you cope with the client side lock() method?
My idea is if the client side will lock a record, it will use lock(int) method to lock the record, inside this method, it will
call the server side's lock() method, and it will wait there until the server side returns successfully. Then I've two questions about this process:
1.how to block the client side method when it's waiting for the server's response
2.What if the connection corrupted, while the record is still in
lock in the server side? Do I need to set some timer to unlock the locked record?
What are the other ideas about the client side lock()?