Re: How does POE speed up operation in reality?

Rocco Caputo <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
On May 3, 2009, at 02:17, Roy M. wrote:
>
> On Sun, May 3, 2009 at 2:02 PM, Rocco Caputo <[email protected]>  
> wrote:
>> I don't understand the question.  Do you mean to imply that an  
>> event-driven
>> program cannot consume data from multiple producers?
>
> I think at least if you want to access blocking method in the main
> event loop, then thread is needed.

True concurrency is only needed if an operation blocks too long for  
the application.

> e.g. in python twisted, they have threadpool
> http://twistedmatrix.com/projects/core/documentation/howto/threading.html
>
> Just wonder if have the same thing in POE.


Yes, Perl is Turing complete.  You can write programs with it that use  
POE and true concurrency at the same time.

Be aware that threads aren't the only form of concurrency at your  
disposal.

-- 
Rocco Caputo - [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.