<?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: Parallel Programming with Perl in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724971#M100889</link>
    <description>Hi Again, &lt;BR /&gt;&lt;BR /&gt;Also, this link &lt;A href="http://www.unix.org.ua/orelly/perl/prog3/ch17_01.htm" target="_blank"&gt;http://www.unix.org.ua/orelly/perl/prog3/ch17_01.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Mon, 06 Feb 2006 05:33:18 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-02-06T05:33:18Z</dc:date>
    <item>
      <title>Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724969#M100887</link>
      <description>Hello!&lt;BR /&gt;I want to write a programm, which should run a command, count 15 minutes and check the status. If the command is still running, it should be canceled. &lt;BR /&gt;However, I found out, that waiting 15 mins with sleep() doesn't bring anything, since it runs in the same thread. &lt;BR /&gt;What would be a nice approach to implement an independant clock? &lt;BR /&gt;Running it in a parallel thread is ok, but only if the machine has multiple CPU's. Otherwise threads are run one after the other.</description>
      <pubDate>Mon, 06 Feb 2006 05:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724969#M100887</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-02-06T05:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724970#M100888</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;You can probably use Parallel-ForkManager to start with. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~dlux/Parallel-ForkManager-0.7.5/ForkManager.pm" target="_blank"&gt;http://search.cpan.org/~dlux/Parallel-ForkManager-0.7.5/ForkManager.pm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 06 Feb 2006 05:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724970#M100888</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-06T05:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724971#M100889</link>
      <description>Hi Again, &lt;BR /&gt;&lt;BR /&gt;Also, this link &lt;A href="http://www.unix.org.ua/orelly/perl/prog3/ch17_01.htm" target="_blank"&gt;http://www.unix.org.ua/orelly/perl/prog3/ch17_01.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 06 Feb 2006 05:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724971#M100889</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-06T05:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724972#M100890</link>
      <description>use alarm ()&lt;BR /&gt;&lt;BR /&gt;the process will then receive an ALARM signal after that time, but the process can do whatever it wants in thr meantime.&lt;BR /&gt;&lt;BR /&gt;# perldoc -f alarm&lt;BR /&gt;&lt;BR /&gt;will describe it, and supply you with an example&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Mon, 06 Feb 2006 05:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724972#M100890</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-02-06T05:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724973#M100891</link>
      <description>Shalom Kalin&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://earth.e-raist.com/~raistlin/coding.html" target="_blank"&gt;http://earth.e-raist.com/~raistlin/coding.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You need to create an independent child process&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bfr.caseywest.com/archives/005438.html" target="_blank"&gt;http://bfr.caseywest.com/archives/005438.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The child must be independent of its parent and run regardless of the status of the parent.&lt;BR /&gt;&lt;BR /&gt;Be careful you can really tie up a system with this.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 06 Feb 2006 05:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724973#M100891</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-02-06T05:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724974#M100892</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Using Alarm is a geat suggestion, but is in this particular example, why not go for the standard 'fork'.&lt;BR /&gt;Specifically used the forked thread to run the main code. The parent receives the pid for the child and can poke and prod it after sleeping for a while.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Be careful you can really tie up a system with this.&lt;BR /&gt;&lt;BR /&gt;Not with a simple fork.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Running it in a parallel thread is ok, but only if the machine has multiple CPU's. Otherwise threads are run one after the other.&lt;BR /&gt;&lt;BR /&gt;Not true. _every_ OS scheduler  knows how to run more than 1 thread, making it seem like there is more than one cpu. It does this first and foremoste by  exploiting wait time (your sleep, newtowrok wait, disk wait). But even if those threads are 100% cpu bound (not your case), it can and will timeslice to allow more tahn one thread a slice of cpu time.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2006 06:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724974#M100892</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-02-06T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724975#M100893</link>
      <description>In this context, how can I run a command from a perl-programm, say "sleep 15", but call it in a way, that the perl-programm doesn't wait for the "sleep 15", but go on.&lt;BR /&gt;system() waits for the call, exec() ends the current script, and qw() does the same as system().&lt;BR /&gt;&lt;BR /&gt;Do I have any other alternative here?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Tue, 07 Feb 2006 07:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724975#M100893</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-02-07T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Programming with Perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724976#M100894</link>
      <description>OK, fork() did it for me, thanks to everybody!</description>
      <pubDate>Tue, 07 Feb 2006 07:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parallel-programming-with-perl/m-p/3724976#M100894</guid>
      <dc:creator>Kalin Evtimov</dc:creator>
      <dc:date>2006-02-07T07:54:34Z</dc:date>
    </item>
  </channel>
</rss>

