- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Today I'm looking into the POSIX routines, hoping to get multi-processor efficiency. I have the standard documentation for all the library and function calls, but for a beginner I still have a zillion questions. Can anyone point me to a good tutorial on the subject? I'd hate to pester experts with dumb (to them) questions.
DD
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Super! It works perfectly, thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the polling loop is causing a lot of cpu activity, put a very short sleepqq of a handfulll of milliseconds in the loop. that usually makes a big differance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ooops... Not perfect. The path that comes back from GET_COMMAND is
"C:\SYNOPSYSV14\.\Debug\SYNOPSYS200v14.exe"
What the spawnl() needs is
"C:/SYNOPSYSV14/Debug/SYNOPSYS200v14.exe"
So the spawnl() doesn't work. Is there an easy way to convert that format? Or should I process the line character by character myself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is only because you are invoking from VS with debug, it is the command line being used! If you run from the system you will get a 'normal' path. That is still a valid path I think anyway, the .\ does not add anything but will still work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is more that that wrong. The slashes are backwards and the path string has extra quote marks in it. If I delete the quotes and change the backslashes to slashes, the spawn works ... but then the command string I pass is not read correctly when the new processes start up.
Is there a C++ call that will recover the path in a friendly fashion? (I know this is a Fortran forum, but I'll try anything.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
why use spawnlp in fortran, you could use the built in in runqq or systemqq functions for example.
Are you running from debug? The path you are getting I am sure will be what was supplied to the system to invoke the program.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »