- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- lib$wait from FORTRAN under VMS 8.2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 05:19 AM
тАО08-15-2005 05:19 AM
lib$wait from FORTRAN under VMS 8.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 05:58 AM
тАО08-15-2005 05:58 AM
Re: lib$wait from FORTRAN under VMS 8.2
welcome to the OpenVMS ITRC forum.
I've found an Oracle RDB V7 Release note describing this type of problem. See section
5.0.6 Application and Oracle Rdb Both Using SYS$HIBER
in the following document:
http://download-uk.oracle.com/otn_hosted_doc/rdb/pdf/rdbrn_705.pdf
Consider to use the LIB$K_NOWAKE flag to prevent spurious wakes.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 06:03 AM
тАО08-15-2005 06:03 AM
Re: lib$wait from FORTRAN under VMS 8.2
Lib$wait is documented to use SYS$HIBER
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."
I'd be tempted to toss in a extra $wake + $hiber before the lib$wait to see of this explains.
The LIB$WAIT documentation suggests to use the LIB$K_NOWAKE flag as second argument preceisely to avoid this unexepected wake problem
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 06:55 AM
тАО08-15-2005 06:55 AM
Re: lib$wait from FORTRAN under VMS 8.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2005 01:32 PM
тАО08-15-2005 01:32 PM
Re: lib$wait from FORTRAN under VMS 8.2
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.
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.
Note however that it will only work for an F_FLOAT argument. Modifications for other floating point types left as an exercise ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 04:50 PM
тАО08-17-2005 04:50 PM
Re: lib$wait from FORTRAN under VMS 8.2
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.
pl use the sys$bintime call to convert the required time to the language of sys$timer.
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.
( as this flags are not local flags)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 11:16 PM
тАО08-17-2005 11:16 PM