Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb_dotnet thread: concurrency procedure


Message #1 by "dragos tudose" <dtudose@y...> on Mon, 30 Sep 2002 20:14:18
ok...i have a procedure which alters some folders on the 
harddisk...deletes them..and copy another set of folders on top of the 
first

this is a job which takes 1 or two seconds

in this time the user can call another procedure which does almost the 
same thing...the most important thing is that it s target for alteration 
are the same folders

this is quite a dilema..if the first procedure is still working with the 
same folders that the second procedure is trying to grab i get the message 
that the object it is trying to alter is used by another process...corect


i think of one solution...maybe u can teach me something else

: to block the user access to any concurent procedures until it is 
finished...but how?...

  Return to Index