As you say, Perl 6 uses continuations, and with continuations you can implement threading.
However the threading model that you get is a cooperative multi-tasking model in one process. Which means that you don't get the ability to keep running other threads when one thread does a blocking operation (like a long-running database call), and you again don't get the ability to ever take advantage of multiple CPUs.
But I know that elian is fully aware of both points, and would be astonished if he did not make the OS threading model available to Parrot in some fairly sane fashion.
|Replies are listed 'Best First'.|
Re: Re: Things you need to know before programming Perl ithreads
by ambrus (Abbot) on Feb 03, 2004 at 15:13 UTC
by tilly (Archbishop) on Feb 03, 2004 at 16:02 UTC