RE: how to create parallel sessions?
"Liu, Fred" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
Many thanks. Is there a better way to realize it? What is the recommended practice? Thanks. Fred > -----Original Message----- > From: Rocco Caputo [mailto:[email protected]] > Sent: Wednesday, August 26, 2009 10:54 AM > To: POE Mailing List > Subject: Re: how to create parallel sessions? > > Perl's for() is not a parallel dispatcher, sorry. POE::Session- > >create() should take relatively little time, after which your > program should call POE::Kernel->run(). This run() method is a > cooperative timeslice dispatcher, which is often parallel enough. > > -- > Rocco Caputo - [email protected] > > > On Aug 25, 2009, at 21:56, Liu, Fred wrote: > > > Hello, > > > > I use " for () { POE::Session->create() }". > > But it seems "for()" is not a parallel dispatcher. > > > > Thanks. > > > > > > Fred Liu > > > > >