On 07/08/07, Need Help <[EMAIL PROTECTED]> wrote:
>        Would it be acceptable to run "one" subagent in it's own thread in
> an existing application which has other non-SNMP threads already
> running in it?

Yes.

The only reason to be careful with multi-threaded applications,
is that activity in one thread can potentially change infomration
that another thread is also working with.   The Net-SNMP agent
framework has not been written in a thread-safe manner, so it
would be dangerous to have two threads, both manipulating the
same (non-thread-safe) Net-SNMP data.

But if your second (third, fourth, fifth,...) threads aren't touching
the Net-SNMP stuff at all, then they shouldn't affect the agent
or subagent in the slightest.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to