• Subject: Passing ownership of object locks?
  • From: "Stephen Hunt" <deptit@xxxxxxxxxxxxxxxx>
  • Date: Wed, 3 Dec 1997 14:17:09 -0000

Can I transfer the ownership of an object lock to another program ?

The program I am working on does the following :-

        1. Locks a data area (so no one elses can run this job).
        2. Performs some data validation.
        3. Submits another job to QBATCH to perform some processing.
        4. Releases the data area lock.

However, the lock on the data area needs to be maintained until the batch
job has finished.  Even though the submitted job re-locks the data area,
this action could be delayed if it gets queued up behind other jobs, and
someone else could obtain the lock on the data area.

Can anyone help or perhaps suggest a better method ?

TIA

Stephen Hunt
Technical Systems Manager
Harvestime Limited
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.