HP3000-L Archives

May 2008, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Walter J. Murray" <[log in to unmask]>
Reply To:
Walter J. Murray
Date:
Tue, 27 May 2008 20:57:22 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
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 *

ATOM RSS1 RSS2