Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^10: while reading a file, transfer the same data to two different processes.

by rowdog (Curate)
on May 21, 2010 at 11:21 UTC ( #841080=note: print w/replies, xml ) Need Help??


in reply to Re^9: while reading a file, transfer the same data to two different processes.
in thread while reading a file, transfer the same data to two different processes.

These tests did run for a while, but less than 5 minutes. My system is a rather old AMD X2 3800+ with 2 Gb RAM running Debian Squeeze (kernel 2.6.32-3-amd64).

My v5.12.0

Rate Threads Forks Threads 9.00/s -- -54% Forks 19.5/s 117% --

Debian's v5.10.1

Rate Threads Forks Threads 9.09/s -- -28% Forks 12.6/s 39% --

Replies are listed 'Best First'.
Re^11: while reading a file, transfer the same data to two different processes.
by BrowserUk (Pope) on May 21, 2010 at 11:53 UTC

    Thanks. Interesting that fork's got quicker for 5.12 but threads stayed the same.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://841080]
help
Chatterbox?
[james28909]: ok i have a new question ;)
[james28909]: i am not sure how to ask google this either
[james28909]: i am getting the current time on my machine with scalar localtime;
[james28909]: i am scraping a website and retrieving a date stamp of an article.
[james28909]: well time/data stamp of the article
[stevieb]: james28909: what's the problem/question?
[james28909]: it is not an absolute date like "27" or "31". sometimes it is like wednesday or friday
[james28909]: and i need to format those special instances into an absolute date instead of "yesterday"

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-04-29 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.