someone please must have some answer to this...

Results 1 to 2 of 2

Thread: someone please must have some answer to this...

  1. #1
    Join Date
    Dec 1969

    Default someone please must have some answer to this...

    If a variable in the Global.Asa file is locked and another client tries to access it, will the other client wait until it is unlocked and then continue or will it just procedd without doing anything to the variable that was locked??<BR><BR>e.g. you have a counter variable that is locked...another client tries to update the counter but it is locked...will it wait and then update the counter or will it continue without trying to update teh counter or retrying to update the counter??<BR><BR>Complicated one to explain, I know...<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default Application.Lock locks *everything*

    It&#039s even more simplistic that you think: If you do Application.Lock in one thread (one user), then any attempt by any other user to access *anything* in Application "space" (that is, *any* Application variable, for example) causes the other user to go into wait state until the first user does the Unlock.<BR><BR>You can&#039t lock individual values with ASP. It&#039s all or nothing.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts