Coro 4.73

Coro is a large Perl module family that implements cooperative multitasking in Perl.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Perl Artistic License 
USER RATING:
3.2/5 28
DEVELOPED BY:
Marc Lehmann
HOMEPAGE:
software.schmorp.de
CATEGORY:
ROOT \ Programming \ Debuggers
Coro is a large Perl module family that implements cooperative multitasking in Perl. It supports filehandle and event abstraction and also implements continuations as well as the necessary directives to implement a slightly limited call/cc in Perl.

Unlike the so-called "Perl threads/fork emulation", they provide a real shared address space (like real threads) without the associated race conditions and performance loss, while maintaining a very low memory overhead (2-3kb/coroutine). The package comes with examples and many supporting modules.

SYNOPSIS

use Coro;

async {
# some asynchronous thread of execution
print "2n";
cede; # yield back to main
print "4n";
};
print "1n";
cede; # yield to coroutine
print "3n";
cede; # and again

# use locking
my $lock = new Coro::Semaphore;
my $locked;

$lock->down;
$locked = 1;
$lock->up;

Last updated on May 29th, 2008

requirements

#cooperative multitasking #filehandle support #Perl module #Perl #cooperative #multitasking #filehandle

Add your review!

SUBMIT