Does this mean, if the record is already locked by sb., I should keep the request of the user in a queue and whenever the record is unlocked somehow [...], lock(reserve) it for the new user ?
whenever the record is unlocked somehow (which is not in the scope of the current assignment GUI)
What if the server fails in the meantime ?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Not necessarily in a queue. All you have to do is have the thread wait until the record is unlocked then continue from there.
Would it be an exaggerated case if I imagine that 2 users want to order the same contractor? Do you think I should maintain FIFO in this case ?
What's brown and sticky? ... a stick. Or a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|