Subject: | |
From: | |
Reply To: | Walter J. Murray |
Date: | Tue, 27 May 2008 20:57:22 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Matthew Perdue asks:
> Would it suit your purposes to have the conditional lock attempt
within
> either a 1) timed loop or 2) a max iteration loop or 3) a hybrid of
both?
I do this sort of thing now, but would like something better. Suppose I
do a conditional lock attempt every 5 seconds and give up after 4 tries,
which is a typical scheme I use.
It's possible that other processes lock and unlock the TurboIMAGE
resource I want numerous times during that 15-second interval, but it
just happens to be locked every time I try to get it.
With a timed, unconditional lock, I would stand a good chance of getting
the lock within the 15 seconds, without running the risk of being
blocked all day.
Walter
Walter J. Murray
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|