[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::nt-developers

Title:MS Windows NT Developers
Notice:See note 1222 for MS bug reporting info
Moderator:TARKIN::LINEIBER
Created:Mon Nov 11 1991
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3247
Total number of notes:15633

3225.0. "lib$deq functionality" by CSC32::HOEPNER (A closed mouth gathers no feet) Mon Apr 21 1997 17:23

    
    Has anyone tried to write functionality within a Windows NT that 
    would be equivalent to the OpenVMS system services  lib$enq
    and lib$deq? 
    
    I have a customer who writes apps and wants that type of 
    functionality in his code.  (Like a system service 
    interlock...) 
    
    Thanks for any information. 
    
    Mary Jo ("Jim, I'm a database person, not a doctor...")
    
T.RTitleUserPersonal
Name
DateLines
3225.1BIGUN::nessus.cao.dec.com::MayneA wretched hive of scum and villainyMon Apr 21 1997 18:018
Windows NT doesn't have the equivalent of the OpenVMS DLS, but it does have 
semaphores, mutexes, and various other synchronisation techniques.

If the customer is writing apps and asking about $ENQ and $DEQ (I'm not aware of 
any LIB$ equivalents) then they have the appropriate documentation and shouldn't 
find it very hard to do what they want.

PJDM
3225.2CSC32::HOEPNERA closed mouth gathers no feetMon Apr 21 1997 18:4914
    
    Thanks for you input. 
    
    They do have MSDN.  However, the customer is trying to dig through 
    all the cds to find the functionality he is after.  He called because
    he felt he wasn't searching on the correct functionality (after all he is 
    thinking in VMS terms).  
    
    So, what keywords would be good to look under? 
    
    Thanks a bunch. 
    
    Mary Jo 
    
3225.3BHAJEE::JAERVINENOra, the Old Rural AmateurTue Apr 22 1997 02:127
    Do a search on "CSemaphore" on the MSDN CD to find info about
    semaphores.
    
    The Visual C++ documentation has a section called "Sharing Common
    Resources" which has links to sections describing mutexes, critical
    sections and semaphores.
    
3225.4CSC32::HOEPNERA closed mouth gathers no feetTue Apr 22 1997 14:592
    
    Thanks. 
3225.5BIGUN::nessus.cao.dec.com::MayneA wretched hive of scum and villainyTue Apr 22 1997 21:3410
I did mention some keywords in .1 ("semaphores", "mutexes", "synchronisation").

A simple search through the VC++ on-line documentation will tell them more than 
they need to know. You don't need MSDN for this.

Also, the Programmer's Reference has a whole chapter on synchronisation. It 
doesn't matter how VMS oriented they are: if they can't spot reasonably obvious 
references like that...

PJDM
3225.6Are we talking DLM?DECWET::CAPPELLOFMy other brain is a polymerWed Apr 23 1997 11:2715
>    Has anyone tried to write functionality within a Windows NT that 
>    would be equivalent to the OpenVMS system services  lib$enq
>    and lib$deq? 
    
    You wouldn't be trying to sneak into a discussion of a Distributed
    Lock Manager, would you?
    
    As pointed out in previous replies, NT has a large variety of
    synchronization primitives, as does VMS.  However none of them on NT
    work over a cluster (yet).
    
    Also, I don't remember if $ENQ and $DEQ support various types of
    locking like "exclusive write", "single writer, multiple readers", etc. 
    None of the NT primitives directly support that variety of locking. 
    However, those types of locks could be built on top of the primitives.
3225.7Interoperability Guide ??????????????BBPBV1::WALLACEjohn wallace @ bbp. +44 860 675093Wed Apr 23 1997 15:176
    I don't have it handy, but is there any discussion of this kind of
    thing in the OpenVMS/NT Interoperability Guide ? (A lot of other good
    things are discussed there...)
    
    regards
    john