- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- equivalent of fork() in OpenVMS
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
Forums
Discussions
Discussions
Discussions
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
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
03-12-2009 07:06 AM
03-12-2009 07:06 AM
equivalent of fork() in OpenVMS
I would like to know what how to create a child process in OpenVM.I suppose OpenVMS does not support fork().
Looking forward for your help....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2009 07:17 AM
03-12-2009 07:17 AM
Re: equivalent of fork() in OpenVMS
Which of these two statements is true in your case depends entirely on what your code thinks fork() does.
Classic fork() isn't available, and classic fork does a whole lot more than most folks realize it does. This is less common.
The fork()/exec() model is available; see vfork() et al. This is the more common model, and use of fork() here can be replaced with vfork().
You'll want to read the C manuals as a start, as they're pretty good at describing this. And there are a couple of FAQs around for those that are familiar with C but are new to programming C on OpenVMS.
http://64.223.189.234/node/273
I will add a discussion of fork and vfork into that article, as I see I've omitted that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2009 07:35 AM
03-12-2009 07:35 AM
Re: equivalent of fork() in OpenVMS
Is this new code? Is there a portability requirement?
Why/What are you trying to fork?
Trying to get more threads?
or
Just trying to execute a (system) command?
OpenVMS offers alternative (and some times better) solutions for both, but it would have been nice to have a real fork with memory and file handle cloning and all.
Anyway... check out LIB$SPAWN when the call frequency is not crazy crazy (no more than once/second?)
And.. look around whether the task to be spawned is not available as a calleable service in the current image/process context.
OpenVMS has callable functions to find files, conver file, manipulates queue, get device information and on and on.
Welcome to OpenVMS and
Good Luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2009 07:53 AM
03-12-2009 07:53 AM
Re: equivalent of fork() in OpenVMS
The system() call is the portable and mostly-analog version of lib$spawn or sys$creprc calls.
And while system() itself is portable C, the spawned command often isn't.
The fork() call is a subtle and extremely powerful call, and one best avoided. Unless you need its full magics, of course, and assuming you're on a box that has the full-power fork().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2009 08:01 AM
03-12-2009 08:01 AM
Re: equivalent of fork() in OpenVMS
http://h71000.www7.hp.com/wizard/wiz_1274.html?jumpid=reg_R1002_USEN
Eberhard