<?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: Perl on OpenVMS multithread in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133920#M44687</link>
    <description>Thank you for info and thank you for spending time on a beginner question.&lt;BR /&gt;&lt;BR /&gt;Seghers Bruno</description>
    <pubDate>Tue, 07 Oct 2008 06:29:36 GMT</pubDate>
    <dc:creator>Bruno Seghers</dc:creator>
    <dc:date>2008-10-07T06:29:36Z</dc:date>
    <item>
      <title>Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133915#M44682</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm a new poeple in the perl world&lt;BR /&gt;Here is the code I try to execute and after the result. Is there a way to solve this ?&lt;BR /&gt;&lt;BR /&gt;Thanks for Help&lt;BR /&gt;&lt;BR /&gt;Seghers Bruno&lt;BR /&gt;Belgium&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;#leaks memory- Threads::Queue is for the old Threads &amp;lt;5.7&lt;BR /&gt;use strict;&lt;BR /&gt;use threads;&lt;BR /&gt;&lt;BR /&gt;use Thread::Queue;&lt;BR /&gt;&lt;BR /&gt;my @threads;&lt;BR /&gt;my $thread;&lt;BR /&gt;&lt;BR /&gt;my $q = Thread::Queue-&amp;gt;new();&lt;BR /&gt;$q-&amp;gt;enqueue(1..10000);&lt;BR /&gt;print "Items in the queue: ",$q-&amp;gt;pending,"\n";&lt;BR /&gt;for (1..5) {&lt;BR /&gt;    push @threads, threads-&amp;gt;new(\&amp;amp;ttest);&lt;BR /&gt;    print "spawned thread:";&lt;BR /&gt;}&lt;BR /&gt;foreach $thread (@threads){&lt;BR /&gt;    $thread-&amp;gt;join;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;sub ttest {&lt;BR /&gt;    while (my $cnt =  $q-&amp;gt;pending) {&lt;BR /&gt;        my $item = $q-&amp;gt;dequeue;&lt;BR /&gt;        print "$cnt\n";&lt;BR /&gt;        last if $cnt == 0 ;&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Results of execution : &lt;BR /&gt;&lt;BR /&gt;USRDISK0:[USERS.MEESSEN.WORK]&amp;gt;perl test_thr.pl&lt;BR /&gt;test_thr.pl line 4:&lt;BR /&gt;&lt;BR /&gt;This Perl hasn't been configured and built properly for the threads&lt;BR /&gt;module to work.  (The 'useithreads' configuration option hasn't been used.)&lt;BR /&gt;&lt;BR /&gt;Having threads support requires all of Perl and all of the XS modules in&lt;BR /&gt;the Perl installation to be rebuilt, it is not just a question of adding&lt;BR /&gt;the threads module.  (In other words, threaded and non-threaded Perls&lt;BR /&gt;are binary incompatible.)&lt;BR /&gt;&lt;BR /&gt;If you want to the use the threads module, please contact the people&lt;BR /&gt;who built your Perl.&lt;BR /&gt;&lt;BR /&gt;Cannot continue, aborting.&lt;BR /&gt;BEGIN failed--compilation aborted at /perl_root/lib/VMS_AXP/5_8_6/threads.pm line 28.&lt;BR /&gt;Compilation failed in require at test_thr.pl line 4.&lt;BR /&gt;BEGIN failed--compilation aborted at test_thr.pl line 4.&lt;BR /&gt;%SYSTEM-F-ABORT, abort&lt;BR /&gt;USRDISK0:[USERS.MEESSEN.WORK]&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133915#M44682</guid>
      <dc:creator>Bruno Seghers</dc:creator>
      <dc:date>2008-10-06T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133916#M44683</link>
      <description>Info about perl installed : &lt;BR /&gt;&lt;BR /&gt;BKS005/SEGH/BKS&amp;gt; perl -v&lt;BR /&gt;&lt;BR /&gt;This is perl, v5.8.6 built for VMS_AXP&lt;BR /&gt;&lt;BR /&gt;Copyright 1987-2004, Larry Wall&lt;BR /&gt;&lt;BR /&gt;Perl may be copied only under the terms of either the Artistic License or the&lt;BR /&gt;GNU General Public License, which may be found in the Perl 5 source kit.&lt;BR /&gt;&lt;BR /&gt;Complete documentation for Perl, including FAQ lists, should be found on&lt;BR /&gt;this system using `man perl' or `perldoc perl'.  If you have access to the&lt;BR /&gt;Internet, point your browser at &lt;A href="http://www.perl.org/," target="_blank"&gt;http://www.perl.org/,&lt;/A&gt; the Perl Home Page.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133916#M44683</guid>
      <dc:creator>Bruno Seghers</dc:creator>
      <dc:date>2008-10-06T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133917#M44684</link>
      <description>You pretty much have to do what it says and build your own thread-enabled Perl from source.  I would start with the Perl 5.10 source here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cpan.org/src/perl-5.10.0.tar.gz" target="_blank"&gt;http://www.cpan.org/src/perl-5.10.0.tar.gz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll need gunzip, a tar utility, the HP C compiler, and MMK (MMS should work but doesn't).  Once you've got the kit unpacked, have a look at README.vms.  The short version of what you'll need to do is:&lt;BR /&gt;&lt;BR /&gt;$ @configure -"Duseithreads"&lt;BR /&gt;&lt;ANSWER all="" the="" configuration="" questions=""&gt;&lt;BR /&gt;$ mmk&lt;BR /&gt;$ mmk test&lt;BR /&gt;$ mmk install&lt;/ANSWER&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133917#M44684</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2008-10-06T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133918#M44685</link>
      <description>&lt;BR /&gt;Well, &lt;BR /&gt;&lt;BR /&gt;The message means it. &lt;BR /&gt;You'll have to build your own perl with Threads enabled, or find a (systems) person to do so for you.&lt;BR /&gt;Personally I have no experience with that so can not help you. Craig Berry, a perl/vms wizard, does stop by here, and can possibly provide a more complete answer. &lt;BR /&gt;&lt;BR /&gt;In the mean time I suggest you look (google) around for a perl 5.10 kit and check the build instructions.&lt;BR /&gt;&lt;BR /&gt;You may also want to cross-post in the perl.vmsperl newgroup. Other OpenVMS Perl resources (like John Malmberg) focus more on those than the itrc forum: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/group/perl.vmsperl/search?hl=en&amp;amp;group=perl.vmsperl&amp;amp;q=threads" target="_blank"&gt;http://groups.google.com/group/perl.vmsperl/search?hl=en&amp;amp;group=perl.vmsperl&amp;amp;q=threads&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;btw 1... not relevant for this question, but if when posting source code in this forum, it is best to check 'Retain Format', otherwise it will eat your spaces, harming readability.&lt;BR /&gt;&lt;BR /&gt;btw 2... The versions of perl on the more or less public access system Eisner and hp-testdrive have not been build with threads either.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:04:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133918#M44685</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-10-06T14:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133919#M44686</link>
      <description>Hein wrote&amp;gt; "Craig Berry, a perl/vms wizard, does stop by here, and can possibly provide a more complete answer."&lt;BR /&gt;&lt;BR /&gt;He did stop by, and he did provide a complete answer between the time that I saw the question and  before I hit my 'submit' button.&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;Oh well, That'll teach me to jump in. (not!)&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Mon, 06 Oct 2008 14:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133919#M44686</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-10-06T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl on OpenVMS multithread</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133920#M44687</link>
      <description>Thank you for info and thank you for spending time on a beginner question.&lt;BR /&gt;&lt;BR /&gt;Seghers Bruno</description>
      <pubDate>Tue, 07 Oct 2008 06:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/perl-on-openvms-multithread/m-p/5133920#M44687</guid>
      <dc:creator>Bruno Seghers</dc:creator>
      <dc:date>2008-10-07T06:29:36Z</dc:date>
    </item>
  </channel>
</rss>

