<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: lib$wait from FORTRAN under VMS 8.2 in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918438#M21461</link>
    <description>Hmmm,&lt;BR /&gt;&lt;BR /&gt;Lib$wait is documented to use SYS$HIBER&lt;BR /&gt;SYS$HIBER is documented to 'remember' outstanding wakes: "If one or more wakeup requests are issued for the process while it is not hibernating, the next hibernate call returns immediately; that is, the process does not hibernate. No count of outstanding wakeup requests is maintained."&lt;BR /&gt;&lt;BR /&gt;I'd be tempted to toss in a extra $wake + $hiber before the lib$wait to see of this explains.&lt;BR /&gt;&lt;BR /&gt;The LIB$WAIT documentation suggests to use the LIB$K_NOWAKE flag as second argument preceisely to avoid this unexepected wake problem&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 Aug 2005 13:03:06 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2005-08-15T13:03:06Z</dc:date>
    <item>
      <title>lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918436#M21459</link>
      <description>We have been using lib$wait with no issues on a VMS 7.2-1 system with the same programs.  We recently upgraded to VMS 8.2 and started experiencing problems.  The lib$wait follows a call to a sub that uses Oracle RDB.  If this routine is commented out the lib$wait works OK.  If two lib$waits are used the lib$wait works OK otherwise the lib$wait acts as though the time has expired and drops through with no delay.  It is like the lib$wait uses an event flag that is already in use by Oracle RDB.  Any thoughts?</description>
      <pubDate>Mon, 15 Aug 2005 12:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918436#M21459</guid>
      <dc:creator>Stephen Goldberg</dc:creator>
      <dc:date>2005-08-15T12:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918437#M21460</link>
      <description>Stephen,&lt;BR /&gt;&lt;BR /&gt;welcome to the OpenVMS ITRC forum.&lt;BR /&gt;&lt;BR /&gt;I've found an Oracle RDB V7 Release note describing this type of problem. See section&lt;BR /&gt;&lt;BR /&gt;5.0.6 Application and Oracle Rdb Both Using SYS$HIBER &lt;BR /&gt;&lt;BR /&gt;in the following document:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download-uk.oracle.com/otn_hosted_doc/rdb/pdf/rdbrn_705.pdf" target="_blank"&gt;http://download-uk.oracle.com/otn_hosted_doc/rdb/pdf/rdbrn_705.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Consider to use the LIB$K_NOWAKE flag to prevent spurious wakes.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Mon, 15 Aug 2005 12:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918437#M21460</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2005-08-15T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918438#M21461</link>
      <description>Hmmm,&lt;BR /&gt;&lt;BR /&gt;Lib$wait is documented to use SYS$HIBER&lt;BR /&gt;SYS$HIBER is documented to 'remember' outstanding wakes: "If one or more wakeup requests are issued for the process while it is not hibernating, the next hibernate call returns immediately; that is, the process does not hibernate. No count of outstanding wakeup requests is maintained."&lt;BR /&gt;&lt;BR /&gt;I'd be tempted to toss in a extra $wake + $hiber before the lib$wait to see of this explains.&lt;BR /&gt;&lt;BR /&gt;The LIB$WAIT documentation suggests to use the LIB$K_NOWAKE flag as second argument preceisely to avoid this unexepected wake problem&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2005 13:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918438#M21461</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-08-15T13:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918439#M21462</link>
      <description>I always code expecting waits, especially sys$hiber(), as a loop with a separate predicate so they are immune to spurious wakes.  I think the default behavior of LIB$WAIT was a poor choice, how many people do waits inside an AST routine?</description>
      <pubDate>Mon, 15 Aug 2005 13:55:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918439#M21462</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-08-15T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918440#M21463</link>
      <description>Stephen,&lt;BR /&gt;&lt;BR /&gt;  This is a documented "feature" of LIB$WAIT (at least in its CRTL "sleep" incarnation). The function of LIB$WAIT can be thought of as "WAIT AT MOST" the specified time. A pending $WAKE or $WAKE during the time period will complete the LIB$WAIT prematurely.&lt;BR /&gt;&lt;BR /&gt;  I've attached a text file containing a substitute LIB$WAIT routine coded in MACRO32 which implements "WAIT AT LEAST" the specified time. Unlike the LIB$K_NOWAKE solution, my code will work in an AST routine (even though I would stronly recommend against any delays at AST level) or with ASTs disabled.&lt;BR /&gt;&lt;BR /&gt;  Note however that it will only work for an F_FLOAT argument. Modifications for other floating point types left as an exercise ;-)&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2005 20:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918440#M21463</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-08-15T20:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918441#M21464</link>
      <description>I feel that the Oracle RDB subroutine which preceeds the LIB$wait call in the in line code may itself have a $ hib call inbuilt call, which causes the process to wake up in advance, before lib$wait takes effect.&lt;BR /&gt;If it is essential for u to use the same code structure as is , suggest using Sys$timer call, of the same time duration, as this call cannot be pre empted.&lt;BR /&gt;pl use the sys$bintime call to convert the required time to the language of sys$timer.&lt;BR /&gt;use a flag for the timer in the region of 32+ to 45, to prevent overlap with any embedded qio calls in the preceeding code section.&lt;BR /&gt;( as this flags are not local flags)</description>
      <pubDate>Wed, 17 Aug 2005 23:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918441#M21464</guid>
      <dc:creator>devgoswami</dc:creator>
      <dc:date>2005-08-17T23:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: lib$wait from FORTRAN under VMS 8.2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918442#M21465</link>
      <description>We have decided to use the lib$k_nowait flag.  Thank you for all the help.</description>
      <pubDate>Thu, 18 Aug 2005 06:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/lib-wait-from-fortran-under-vms-8-2/m-p/4918442#M21465</guid>
      <dc:creator>Stephen Goldberg</dc:creator>
      <dc:date>2005-08-18T06:16:38Z</dc:date>
    </item>
  </channel>
</rss>

