Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Running subs ,,in background''

by Moriarty (Abbot)
on Nov 24, 2005 at 00:04 UTC ( #511282=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://511282]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2018-05-21 17:23 GMT
Find Nodes?
    Voting Booth?