Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: process synchronize.... Please help me out

by Corion (Patriarch)
on Apr 22, 2009 at 07:00 UTC ( [id://759195]=note: print w/replies, xml ) Need Help??


in reply to Re^4: process synchronize.... Please help me out
in thread process synchronize.... Please help me out

You've been shown many approaches and many solutions already. You can serialize the log writing by locking the log file handle. You can write to different log files. You can write to a central logging process.

So far, I have not seen any try at using the code you've been given, only more questions on "how can I do this". I think you need to take a step back and identify how each solution will solve your problem and then choose the solution that you understand best.

  • Comment on Re^5: process synchronize.... Please help me out

Replies are listed 'Best First'.
Re^6: process synchronize.... Please help me out
by sandy1028 (Sexton) on Apr 22, 2009 at 07:26 UTC
    Can anyone provide me tutorial regarding how to serialize the processes and write to multiple log files....
    I tried using lock and waitpid() functions but no luck

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://759195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-12 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found