> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On > Behalf Of Sail Kim > Sent: Wednesday, August 23, 2006 9:33 AM > To: IBM-MAIN@BAMA.UA.EDU > Subject: Re: SETLOCK TEST question please > > > variant, SETLOCK TEST,TYPE=HIER which answers the question > > It sure answered one of my question. THANKS! > > > That can be considered to be true, but is irrelevant. The CMSSMF and > > CMSEQDQ locks are *not* part of the intended programming > > interface. You are expected *not* to obtain them. > > However, I don't want to obtain CMS lock while CMSSMF or CMSEQDQ is held > (ABEND073). > > > This is correct. There are no hierarchy considerations related to > obtaining the CPU lock > > True with spin lock. But, not true with suspend lock per document. And > always obtainable for disablement of interrupts and I/O. > > I was kind of waiting for IBMer to join in. Here is the entire question > and my effort is to completely eliminate any chance of the lock violation. > > What test do I need before (if any): > SETLOCK OBTAIN,TYPE=LOCAL > What test do I need before (if any): > SETLOCK OBTAIN,TYPE=CMS > . > . > . > What test do I need before (if any): > SETLOCK RELEASE,TYPE=CMS > What test do I need before (if any): > SETLOCK RELEASE,TYPE=LOCAL > > TIA, > > Sail Kim /snip/
I think it would help everyone to step back and look at the larger picture. The system locks that are managed by the SETLOCK service are intended for serializing *SPECIFIC* control blocks and operating system services. The system locks are *NOT* intended for serializing application control blocks or services. Example: If you need branch entry to GETMAIN for private area allocation, then you must first obtain the local lock of the target address space. Example: If you need to delay address space creation/termination for a short time, then you can obtain the global CMS suspend lock. Example: If you need to update application control blocks so that multiple units of work see a consistent view of the data structure(s), then use compare-and-swap or Perform Locked Operation or maybe the GRS Latch Manager services. So, what system control blocks or services exactly are you trying to serialize with a system lock and why? Jeffrey D. Smith Principal Product Architect Farsight Systems Corporation 700 KEN PRATT BLVD. #204-159 LONGMONT, CO 80501-6452 303-774-9381 direct 303-484-6170 FAX http://www.farsight-systems.com/ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html