- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should have one Argument which is the number of seconds to sleep for. Any maximum in seconds is not important as long as the maximum is greater is greater than 60 seconds.
It shoulld be simple...
I wish I had some documentation. Can anyone recommend a good reference book?
Renee
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[bash]RECURSIVE SUBROUTINE delay_ms (howmany) USE kernel32, ONLY: sleep IMPLICIT NONE INTEGER,INTENT(IN) :: howmany ! Win32 suspend function, allows the timeslice to be ! used by other threads until the timeout elapses IF (howmany > 0) CALL sleep (howmany) END SUBROUTINE delay_ms [/bash]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SLEEPQQ
Portability Subroutine: Delays execution of the program for a specified duration.
Module
USE IFPORT
Syntax
CALL SLEEPQQ (duration)
duration |
(Input) INTEGER(4). Number of milliseconds the program is to sleep (delay program execution). |
[fortran] USE IFPORT INTEGER(4) delay delay = 2000 CALL SLEEPQQ(delay) [/fortran]Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It doesn't compile.
Pedro, I"ll try yours.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sleep is synchronous and perfect here.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"(Intel Fortran supports SLEEPQQ on all three operating systems.)"
I'm afraid that under NO circumstances do I write code for any of the Unix series.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You had LIB$SLEEP - which I wrote. It used $HIBER and $SCHDWK (without the latter you'd never wake up.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I didn't know - Do you have a recommendation for a book I can read?
Where do I find the Lib$ routines? Help is still useless with VS and so this messes up Intel help.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you are having trouble with the help, please explain. I don't know what you mean by "messes up Intel help". You could have typed "sleep" into the Index tab and found the entry. There is also a handy table, though well buried in the documentation. Language Reference > A to Z Reference > Language Summary Tables. This lists groups of library routines by type.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For that matter I cant find Lib$ in Google....
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For Intel, it found sleep when I searched for it as a pdf file. Since I had what I needed I did not persist in search. I got a .PDF Intel Users and reference guide on the net and that works. The help doesn't as the Find doesn't work at allin VS, with Intel material.
I find that I like books with pages. By the the way, the Unix information is useless and is noise as far as I'm concerned.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably have some problem with VS10. I'm using VS10 and I have access to Composer XE documentation using the help tab. I see the doc's through Microsoft help viewer. I also have a search tab.
Pedro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For a good reason. In all probability, they do not exist and will not exist on any OS other than VMS.
Functional equivalents for some LIB$ functions may exist, but these are not part of the Fortran language and portable code will not reference them. As the years pass, it will get harder to dig up even information on what those routines were supposed to do, let alone working ports.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks you.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks you.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Functional equivalents for some LIB$ functions may exist, but these are not part of the Fortran language and portable code will not reference them. As the years pass, it will get harder to dig up even information on what those routines were supposed to do, let alone working ports"
VMS was the best OS ever made, bar none. It's a shame the we are going backwards in the OS world.
Renee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was not implying that Intel Fortran had LIB$ routines. I was commenting on your remark about VMS $HIBER and not having "sleep" on VMS, pointing out that yes indeed you did.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sleep is clumsy; $hiber was refined. Unix was largely a synchronous operating system, which is why Unix programmers do not understand what we're talking about and people think Sleep or Lib$sleep is OK. It's not.
I used $Hiber in the Shadow Serverfora reason which was that it was asynchronous. I never used Lib$sleep because of it's synchronicity.
Renee

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page