Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Running subs ,,in background''

by Moriarty (Abbot)
on Nov 24, 2005 at 00:04 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found