• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

locking question!

 
mateen dar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi . could any one tell me how to implemnt the locking mechanism . say two clinents want to uodate a record , the simple way what i have thought of is to use a hastable to store a record number , and a status say locked or unlocked. the code checks if the given record is locked or not, waits and then performs undation. will this work. i heard people here using a cookie value. what is this. thanks
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mateen,

the cookie value is only of interest for you when your interface (the one Sun provided in your assignment) contains it.

In case your interface wants cookies than you have to implement it. Cookies are then like a key you need to open and close a lock.

Search here for the 'cookie' and you find tons of answers

Regards,
Darya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic