Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: Question about Parallel::ForkManager

by ikegami (Pope)
on Sep 30, 2011 at 22:01 UTC ( #928938=note: print w/replies, xml ) Need Help??

in reply to Re^2: Question about Parallel::ForkManager
in thread Question about Parallel::ForkManager

I didn't realized it used the disk. Pipes could be used, so I'm curious why it uses the disk. (Ah yes, using pipes would prevent the parent from doing other work while the children are running. This is usually not a problem, but it would break P::FM's interface to support this.)

There won't be a race condition. It surely defends against that using the process id in the file name.

  • Comment on Re^3: Question about Parallel::ForkManager

Replies are listed 'Best First'.
Re^4: Question about Parallel::ForkManager
by vit (Pilgrim) on Sep 30, 2011 at 22:07 UTC
    Maybe I can do something simple with "fork" and pipes? If you have a solution could you give it to me.
      I don't have that handy, no. If you're ok with a solution that uses threads, I can provide that.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928938]
[Corion]: But yes, in general, my approach will be "split the URL into another set of parameters, generate an array of allowed values for each parameter and then NestedLoops() over the set"
[choroba]: hmm... so you need something like bag from Test::Deep, but not for checking, but for generation
[Corion]: This has the dual use of easily requesting sequential URLs and also being suitable for testing
[Corion]: For testing, I want to skip all tests with the same value(s) once one test fails to cut down on the number of failing tests
[Corion]: choroba: Yes, in a way I
[Corion]: ... I'm treating the incoming value sets as bags... Maybe I'll just put the burden on the user, at least in the first attempt at a full API. generate( headers => [{ 'Content-Type' => 'text/plain' }, {'Content-Type' => 'text/json' ] ), even ...
[Corion]: ... if that is cumbersome for the caller to specify. On the other hand, maybe there isn't that big a need for permuting the header values

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-01-17 08:25 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (152 votes). Check out past polls.