in reply to Running subs ,,in background''

I'd rather put my eggs in the basket of the OSses fork than in Perl's implementation of threads. ;-) The advantage of forking over threading (beside a non-thread capable perl being faster) is that if problems like this are triggered by the drawing routine, all it can do is bring down the program that draws the graphs - you might miss a graph, but your collector will still run.

Personally, I would neither use fork(), nor threads. I'd write two programs, a data collector, and a graph drawer.

However, none of the above really helps with solving the glibc problem. Of that, I do not know the answer.

Perl --((8:>*

Replies are listed 'Best First'.
Re^2: Running subs ,,in background''
by lRem (Scribe) on Nov 23, 2005 at 21:43 UTC
    Writing 2 programs is the last resort, as I wanted to keep it in one file. On the other hand, I'm also not sure about forking. Maybe I'll just make it take an argumet whether run as a collector or grapher.
    --
    Someday, people who know how to use computers will rule over those who don't. And there will be a special name for them: secretaries. -Dilbert quote