<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mutex for multiprocess synchronization in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114305#M44137</link>
    <description>Ye Liu,&lt;BR /&gt;&lt;BR /&gt;please review&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;for the way to say "Thank you" here.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
    <pubDate>Wed, 18 Jun 2008 14:55:07 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2008-06-18T14:55:07Z</dc:date>
    <item>
      <title>mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114296#M44128</link>
      <description>Dear VMS Users,&lt;BR /&gt;&lt;BR /&gt;May I know what is the fastest mutex (or RW Lock) for multiprocess synchronization on Itanium2?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;YE LIU</description>
      <pubDate>Tue, 17 Jun 2008 15:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114296#M44128</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-17T15:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114297#M44129</link>
      <description>The fastest is a shared memory spinlock interlock.&lt;BR /&gt;&lt;BR /&gt;Typically more than adequate is just using the OpenVMS Lock Manager (SYS$ENQ())&lt;BR /&gt;&lt;BR /&gt;Some folks even use a record in an indexed file.&lt;BR /&gt;&lt;BR /&gt;What are the detailed requirenments?&lt;BR /&gt;&lt;BR /&gt;How many handof per second expected?&lt;BR /&gt;Any data to convey during the handof?&lt;BR /&gt;What level of process crash protection?&lt;BR /&gt;User code, or kernel code?&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2008 16:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114297#M44129</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-17T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114298#M44130</link>
      <description>I observed that the Interlock operation takes very long percentage of time compared to Alpha when we ported it to Itanium. Could you post the API or system call, because the interlock call is implemented in assembly language on Alpha. I suspect that it does not work well on Itanium.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;YE LIU</description>
      <pubDate>Tue, 17 Jun 2008 16:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114298#M44130</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-17T16:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114299#M44131</link>
      <description>Ok, so this is not a 'random' question, but you have a real problem to solve.&lt;BR /&gt;Clearly you have MUCH more information to share. Please don't 'waste' our time making us guess and speculate. Provide some numbers, some code in an attachment, explain what has been tried, Explain what 'much longer' means in your universe, explain the observation tools used thusfar.&lt;BR /&gt;&lt;BR /&gt;Note, this problem may well be beyond the scope of a helpful attempt here. Depending on you time and resources you may want to consider professional support for this challenge. There are several folks out there, and even withing the readership of this forum, which are qualified the help with these kind of jobs.&lt;BR /&gt;&lt;BR /&gt;Best of luck,&lt;BR /&gt;Hein van den Heuvel ( at gmail dot com )&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2008 16:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114299#M44131</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-17T16:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114300#M44132</link>
      <description>Answering Hein's questions first will get you a better response, as would posting the code you are attempting to use for synchronisation.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Rob</description>
      <pubDate>Tue, 17 Jun 2008 16:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114300#M44132</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2008-06-17T16:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114301#M44133</link>
      <description>The fastest?  That would be no lock at all.  And yes, that can be entirely possible.  Careful writes, and avoidance of word tears and such.&lt;BR /&gt;&lt;BR /&gt;Further, what is technically the fastest approach might be a wildly incorrect solution for the problem as -- by the time the designer and the programmer  are done contending with the implications of the technique and with the design and implementation and the debug and the support costs -- the solution can be more expensive than using a solution that implements the requisite features.&lt;BR /&gt;&lt;BR /&gt;For instance, cluster-wide shared RMS files (with global buffers enabled) can be the best available solution for shared storage.  Even though shared memory is faster, and other synchronization techniques seem preferable.  By the time you get done dealing with all of what RMS deals with on your behalf, you can end up with a big and hairy code-base that you now have to maintain and upgrade.&lt;BR /&gt;&lt;BR /&gt;If you want to maintain your own versions of spinlocks, the distributed lock manager, RMS cluster-aware processing and/or other such synchronization tools, have at.  It can be a career, even once you get the debugging and the race conditions solved.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2008 18:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114301#M44133</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-06-17T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114302#M44134</link>
      <description>YE,&lt;BR /&gt;&lt;BR /&gt;  In terms of code path, Hein's suggestion of spinlocks is certainly the fastest, BUT if the code will ever execute on a uniprocessor system, you have to add priority equalisation (to prevent starvation), which will slow things down. Assuming the syncronisation points are sparse, with low contention and short critical regions, then spinlocks will probably give best performance with least overhead. However, if you have a high contention and/or long critical regions, spinlocks will generate lots of MPSYNCH like activity spinning for a lock, in which case you're probably better off using cluster wide locks.&lt;BR /&gt;&lt;BR /&gt;  From an application perspective, the best thing you can do is design an API which describes your "ideal" synchronization primitives. Write your application in terms of those primitives. You can then implement the API using any mix of the underlying mechanisms provided by OpenVMS, and, if necessary, change the mechanism without having to change the application. This also provides you with a mechanism to easily compare different mechanisms, and to port the application logic to other platforms which provide different mechanisms or different performance balances (like Alpha - Itanium).</description>
      <pubDate>Wed, 18 Jun 2008 01:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114302#M44134</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-06-18T01:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114303#M44135</link>
      <description>Thanks everyone for the reply.&lt;BR /&gt;&lt;BR /&gt;YE LIU</description>
      <pubDate>Wed, 18 Jun 2008 14:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114303#M44135</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-18T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114304#M44136</link>
      <description>Thanks for the reply.</description>
      <pubDate>Wed, 18 Jun 2008 14:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114304#M44136</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-18T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: mutex for multiprocess synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114305#M44137</link>
      <description>Ye Liu,&lt;BR /&gt;&lt;BR /&gt;please review&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;for the way to say "Thank you" here.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 18 Jun 2008 14:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/mutex-for-multiprocess-synchronization/m-p/5114305#M44137</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-06-18T14:55:07Z</dc:date>
    </item>
  </channel>
</rss>

