- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Support for POSIX semaphores?
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-14-2005 08:38 AM
03-14-2005 08:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 09:00 AM
03-14-2005 09:00 AM
Re: Support for POSIX semaphores?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 06:15 PM
03-14-2005 06:15 PM
Re: Support for POSIX semaphores?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 07:16 PM
03-14-2005 07:16 PM
SolutionAFAIK, and I checked the info on the latest version of the CRTL, there is no support for POSIX style semaphores.
The closest you can get, is writing your own routines based on VMS mutexes (mutual exclusion semaphores). There are (undocumented) routines that allow for manipulation of semaphores
( SCH$LOCKR(_QUAD), SCH$LOCKW(_QUAD), SCH$LOCKWNOWAIT(_QUAD), SCH$UNLOCK(_QUAD) )
Hope this helps,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2005 09:03 PM
03-14-2005 09:03 PM
Re: Support for POSIX semaphores?
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 01:14 AM
03-15-2005 01:14 AM
Re: Support for POSIX semaphores?
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 02:02 AM
03-15-2005 02:02 AM
Re: Support for POSIX semaphores?
Of course the problem with this solution is that there isn't a portable solution for shared memory that I know of. I guess on VMS you'd have to use global sections.
Caveat: I haven't actually tried using shared pthread mutexes and conditions in a global section on VMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 04:24 AM
03-15-2005 04:24 AM
Re: Support for POSIX semaphores?
"Semaphores are similar to VMS locking and is used to coordinating or synchronizing activities in which multiple processes compete for the same operating system resources."
The chart accompanying that text includes "Semaphores" in the OpenVMS V8.3 box, which is shown elsewhere in the presentation as projected for H1 2006.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 04:27 AM
03-15-2005 04:27 AM
Re: Support for POSIX semaphores?
Mark, I don't know if the usage of Semaphores in the roadmap corresponds with the System V functionality you're looking for. And it certainly isn't of any immediate help to you...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 06:08 AM
03-15-2005 06:08 AM
Re: Support for POSIX semaphores?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2005 08:49 PM
03-15-2005 08:49 PM
Re: Support for POSIX semaphores?
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2005 08:05 AM
03-16-2005 08:05 AM
Re: Support for POSIX semaphores?
PPL$CREATE_SEMAPHORE Creates and initializes a semaphore with a
waiting queue
PPL$DECREMENT_SEMAPHORE Waits for the semaphore to have a value
greater than zero and then decrements the
semaphore
PPL$INCREMENT_SEMAPHORE Increments the value of a semaphore by 1
but these do not seem to work in 7.2-3. I can't get a valid semaphore ID back from PPL$CREATE_SEMAPHORE.