in reply to Running subs ,,in background''

I don't know anything about threads or forks, but I was curious as to why you would have more than one drawing thread. I would have thought that you would have a single drawing thread that sleeps for a minute at a time, waking up only to redraw the graph based on information that the main program had collected, then go back to sleep again.

Replies are listed 'Best First'.
Re^2: Running subs ,,in background''
by lRem (Scribe) on Nov 24, 2005 at 08:17 UTC
    Because it doesn't draw just one graph of the data. In fact, it draws 35 graphs, but some of them are refreshed realy rarely. I could make it one thread taking a lot of communication, but I wanted to keep the source simple.
    --
    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