![]() |
|
XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You have encountered a fairly common design pattern, where you have a relatively quick "work supplier" in "tail"in the file, and a relatively slow "consumer" process, which does the snmpget.
The usual solution to this is to run multiple, parallel "consumer" processes, such that, on the average, consumption rate matches generation rate. One solution to this uses threads to run worker processes, and queues to communicate with them. This site contains many such queries, and implementations of this pattern, this one being the most recent. Please review the techniques, and I recommend following BrowserUk's brilliant responses. This is not an optical illusion, it just looks like one. In reply to Re: Im I forking properly ?
by NetWallah
|
|