Doubt

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2007
Posts: 8
Reputation: vamas is an unknown quantity at this point 
Solved Threads: 1
vamas vamas is offline Offline
Newbie Poster

Doubt

 
0
  #1
Jul 10th, 2007
Hai all,

I am new to programming. I never been into multiuser system programming.

In one of my interview, they asked me like.........

There is a table with order details.......like order no (auto increment field),order detail. If there are multi users in the system. If one user is accessing orderno 1001 and their details,,,and the another user is also accessing same orderno 1001 at the same time.........user1 is updating the record and storing it back................but still user2 is using the odd records only ..........how do you overcome this problem.........(in interview they asked me like this........

Please tell answer in detail.................
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,132
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Doubt

 
0
  #2
Jul 19th, 2007
the user2 will still access the old data till the user1 executes COMMIT.
To avoid this user need to lock the table / record before executing any UPDATE command.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC