-----Original Message-----
From: Ron Parker [mailto:[email protected]] 
Sent: Friday, June 04, 2010 1:19 PM
To: [email protected]
Subject: Re: atomic operations in VBScript


> What I'm doing for now is simply using a short "sleep" command when 
> attempting to lock fails (implemented as suggested with a boolean 
> variable); it appears to me that everyone involved can afford to wait a
bit.
>    

Do you find that that works? If it's a problem of reentrancy, it doesn't
seem that it would.


I haven't had a chance to do much testing; and I don't have a test
guaranteed to turn up the problem.  in fact, if I do things which make it
happen less often, it becomes even harder to track down and deal with.

Now that you point it out, I think I understand why it wouldn't work.

I do have one instance involving a shared object, where it (and I believe
it's own thread) is contending for access to a dictionary, at the same time
as clients (other scripts, I believe in other threads right?) are trying to
access this dictionary.  in this case I think it should work right?

thanks again.

Chip

Reply via email to