logo       

Re: alternatives to POE: msg#00070

Subject: Re: alternatives to POE
 
> To enable the concept of cooperative multitasking, I'd prob have to
> break up the comms into smaller chunks, and have some form of state
> memory for the poe framework to work. This however is not exactly the
> straightforward style of coding as one would normally do (though this is
> prob an arguable pt).

POE is non-blocking operators + iterators + event loop = cooperative 
multitasking.

> It seems to me that everyone knows how bad threading is for Perl, and
> rather than openly admit it, we regress (again, another arguable
> position) into cooperative multitasking. IMHO not the right thnig to do.

I think threading in perl is not so bad, but it is still very situational on 
where and when 
you can really use it due to many modules that are not thread safe and the 
extreme memory
overhead if your threads don't need all of the cloned data.
 
Threads, no matter what language, have their down side.  At least in perl 
threads you have to be much more involved in mashing global data (in general) 
because you have to share it.
 
I recently stumbled across CLONE_SKIP in threads, which may provide a less 
bumpy ride 
on these issues, but untested by me ATM.

My current solution is a mixture of cooperative multitasking (event loop) and 
parallelism (multiple peer apps using RPC over IPC-Shared Memory, a message 
queue, some peer apps are threading).

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 
<http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> 
_______________________________________________
wxperl-users mailing list
wxperl-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/wxperl-users 
<https://lists.sourceforge.net/lists/listinfo/wxperl-users> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe