Ask a Question related to PERL Miscellaneous, Design and Development.
-
Paul Archer #1
Re: purpose of threads?
Juha Laiho <Juha.Laiho@iki.fi> spewed forth with:
As a relatively poor example of this, I'm writing a threaded YACMP (Yet> Where threads fit are situations where you're doing multiple tasks
> simultaneously (in parallel), and the tasks have much data to interchange
> with each other. You could do this with several processes and various
> forms of IPC, too, but communication between processes is expensive
> in terms of CPU use. So, threads lower the CPU utilization by reducing
> the need for IPC, and can also reduce communications latency when
> compared to multiple processes exchanging data.
Another Car Mp3 Player) application. Different threads handle reading from
the app actually doing the decoding (currently rxaudio, but may change to
mpg123), the buttons for input, etc. I suppose it could be done with forking
instead, but it works for me. Whether you're forking or threading, an advantage
is that if one part blocks (like waiting for user input), the rest keeps
running.
Paul Archer
Paul Archer Guest
-
Purpose of Contribute
Hi everyone, I have to create a content management system for a small website I'm creating for a client. I was planning on using xml and php to... -
multi-purpose PHP page
Hey everyone, here is my question... I am looking to have a single product page that is able to read a single table that would contain several... -
What is the purpose of FormsAuthentication.SignOut()?
MSDN documentation says: Removes the authentication ticket. That's it. Where does it remove the authentication ticket from (server /... -
General Purpose Transactions
I was writing a piece a code where I needed to change a few object attributes, call a method, then reset those attributes to what they were. And it... -
purpose of replace method
Hi, I was just wondering what the methods Array#replace, Hash#replace and String#replace achieve that can't be done with simple assignment. ...



Reply With Quote

