> So we would like to make the subagents OID handling multi-threaded,
> so that the subagent can do a parallel job.

Which brings you back to Robert's original question:

RS> Do you just want the core agent multi-threaded, or were 
RS> you hoping for all the mibs to be multi-threaded as well? 
RS> If you need the mibs multi-threaded as well,
RS> I think you are in for a long, strange trip.


There's no real difference between the master agent and a subagent here.
If you're talking about a (sub/)agent handling multiple requests in
parallel, then that requires the MIB modules to be thread-safe.

Now I'm no expert in the problems involved in threaded-programming,
but it strikes me that there are two basic interactions that need
to be considered:

        a)  the MIB module code with the main agent driving code
        b)  one MIB module with another

I'd be tempted to tackle these separately - first work on the
MIB<->agent interaction (with the MIB modules tested deliberately
chosen to avoid inter-MIB-module dependencies).

   Then once that's working, there would need to be a means of
denoting particular groups of MIB modules as inter-dependent,
and hence ensuring they weren't processed in separate threads.


But how much it is sensible to "bolt on" to the existing code,
and how much this would involve a significant restructuring
of the overall agent code, I wouldn't like to say.


> I hope you see the problem the same way we do and furthermore we hope
> it's a worthwhile task we try to do over here.

Oh, it's definitely a worthwhile task, and I wish you well in it!

Dave



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to