[Info-vax] counting-lock ?
Marty Kuhrt
marty at spamloop.kuhrt.net
Thu Oct 22 13:03:28 EDT 2009
Pierre wrote:
> hi,
>
> I have a DECnet object which can serve various known queries on a
> database. these queries are resource consuming and I don't want more
> than (say) n=5 of them of the same type to run at the same time. I
> want the other one to be queued up for further processing.
Is this something that could be done with the queue manager?
Set up a special queue for the resource and set the queue job limit
(/JOB_LIMIT=5). If something is submitted, and five are executing, it
will wait. If a job completes or dies (assuming it doesn't hang), then
the next job in line gets run.
Marty
More information about the Info-vax
mailing list