Source

perl-begin / src / uses / multitasking / index.html.wml

Full commit
#include '../template.wml'

<latemp_subject "Perl for Multitasking and Networking" />

<h2 id="intro">Introduction</h2>

<p>
In multitasking, the program performs several tasks at once. Multitasking
is closely related to networking where we have to handle several events
or serve several clients at once.
</p>

<h2 id="technologies">Technologies of Interest</h2>

<h3 id="poe"><a href="http://poe.perl.org/">POE: Perl Object
Environment</a></h3>

<p>
A Perl framework for reactive systems, cooperative multitasking and network
applications.
</p>

<h3 id="ipc-run"><cpan_self_dist d="IPC-Run" /></h3>

<p>
A module that allows one to run background processes with piping, and ptys.
Works on UNIXes as well as Windows.
</p>

<h3 id="expect"><cpan_self_dist d="Expect" /></h3>

<p>
Allows one to control a terminal application interactively and wait for
events.
</p>

<h2 id="threads">Threads?</h2>

<p>
Many people are tempted to use threads with Perl and Internet forums are
constantly frequented for help with threads in Perl. However, the use of
Perl in threads is not recommended:
</p>

<ul>

<li>
Elizabeth Mattijsen has written
<a href="http://www.perlmonks.org/index.pl?node_id=288022">an essay about
the problems with threads in Perl</a> on Perlmonks.
</li>

<li>
<a href="http://perldoc.perl.org/perlthrtut.html">See perlthrtut</a> for
more information.
</li>

</ul>