<?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 VAX/VMS 5.5-2 &amp;amp; POSIX Threads ... in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6829846#M37548</link>
    <description>&lt;P&gt;Hi&amp;nbsp; All!&lt;/P&gt;&lt;P&gt;Is there some good and enough old boy who have had an expirience of&amp;nbsp; using pthreads under VAX/VMS 5.5-2 ? :-)&lt;/P&gt;&lt;P&gt;Any importrant difference beetwen under VMS 5.5-2 and 7.x? Limitations ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 09:33:03 GMT</pubDate>
    <dc:creator>Ruslan R. Laishev</dc:creator>
    <dc:date>2016-02-03T09:33:03Z</dc:date>
    <item>
      <title>VAX/VMS 5.5-2 &amp; POSIX Threads ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6829846#M37548</link>
      <description>&lt;P&gt;Hi&amp;nbsp; All!&lt;/P&gt;&lt;P&gt;Is there some good and enough old boy who have had an expirience of&amp;nbsp; using pthreads under VAX/VMS 5.5-2 ? :-)&lt;/P&gt;&lt;P&gt;Any importrant difference beetwen under VMS 5.5-2 and 7.x? Limitations ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 09:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6829846#M37548</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2016-02-03T09:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: VAX/VMS 5.5-2 &amp; POSIX Threads ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6830043#M37549</link>
      <description>&lt;P&gt;As for OpenVMS VAX, AFAICT, POSIX threads was from ~1995. &amp;nbsp; OpenVMS VAX V5.5-2 from 1992. &amp;nbsp;So there are no threads in the base distro, unless you count the VAX C not-POSIX-based parallel-processing interfaces. &amp;nbsp;Back that far,&amp;nbsp;&lt;A href="http://h30266.www3.hp.com/odl/vax/progtool/cpqc64/rtc_i.htm#first_page" target="_blank"&gt;the&amp;nbsp;ANSI C compiler and threading was an add-on&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;As for your question, and assuming the AACRT060 kit is installed: somewhat buggy. &amp;nbsp; That's from twenty-year-old recollections, too. &amp;nbsp; One look at the various OpenVMS updates and the threading-related&amp;nbsp;patch kits that have arrived since that era and since VAX was retired would have told you that, though.&lt;/P&gt;&lt;P&gt;Threading support really didn't settle down until after the &lt;A href="http://h20565.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-c04623090" target="_blank"&gt;KP work&lt;/A&gt; and AFAIK that support was never available on VAX.&lt;/P&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="http://www.hpl.hp.com/techreports/2004/HPL-2004-209.html" target="_blank"&gt;assuming pthreads can work at all&lt;/A&gt;&amp;nbsp;— and I'm somewhat skeptical about that. &amp;nbsp; An approach similar to&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Grand_Central_Dispatch" target="_blank"&gt;GCD&lt;/A&gt;&amp;nbsp;(with compiler support and library assists)&amp;nbsp;works rather better here in my experience, but VMS completely lacks support for that.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 17:35:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6830043#M37549</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2016-02-03T17:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: VAX/VMS 5.5-2 &amp; POSIX Threads ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6830091#M37550</link>
      <description>&lt;P&gt;Thanks for answer , Hoff!&lt;/P&gt;&lt;P&gt;I expected that the Dave Butenhoff can be drop some words&amp;nbsp; but .... only good old &lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/8794"&gt;@Hoff﻿&lt;/a&gt; still here. :-)&lt;/P&gt;&lt;P&gt;Of course&amp;nbsp; I installed the AACRT060 before trying pthreads.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I caugh the first "difference" that I cannot use 0, or NULL&amp;nbsp; as a second argument&amp;nbsp; in the pthread_create call (), and i suspect that there is some other differences.&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;#include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;starlet.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;#include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;stdio.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;#include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pthread.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp; thread&amp;nbsp; (void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; 13; i++)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("[TID:%x%x] Iteration = %d\n", pthread_self(), i);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_exit(NULL);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;struct timespec interval = {3, 0};&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;void&amp;nbsp;&amp;nbsp;&amp;nbsp; main&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;pthread_t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tid;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;pthread_attr_t&amp;nbsp; tattr = {0};&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; 3; i++)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( status = pthread_create(&amp;amp;tid, tattr, thread, NULL) )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("pthread_create() -&amp;gt; %d", status);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pthread_delay_np(&amp;amp;interval);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Let me read about the KP, thanks for the reference.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 19:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vax-vms-5-5-2-amp-posix-threads/m-p/6830091#M37550</guid>
      <dc:creator>Ruslan R. Laishev</dc:creator>
      <dc:date>2016-02-03T19:53:48Z</dc:date>
    </item>
  </channel>
</rss>

