On Fri, 27 Aug 2004 11:28:43 +0100 Dave wrote: DS> > So we would like to make the subagents OID handling multi-threaded, DS> > so that the subagent can do a parallel job. DS> DS> There's no real difference between the master agent and a subagent here. DS> If you're talking about a (sub/)agent handling multiple requests in DS> parallel, then that requires the MIB modules to be thread-safe. DS> DS> Now I'm no expert in the problems involved in threaded-programming, DS> but it strikes me that there are two basic interactions that need DS> to be considered: DS> DS> a) the MIB module code with the main agent driving code DS> b) one MIB module with another DS> DS> I'd be tempted to tackle these separately - first work on the DS> MIB<->agent interaction (with the MIB modules tested deliberately DS> chosen to avoid inter-MIB-module dependencies).
I think b isn't any different that what you would do for two agentx subagents. Some kind of IPC mechanism. DS> Then once that's working, there would need to be a means of DS> denoting particular groups of MIB modules as inter-dependent, DS> and hence ensuring they weren't processed in separate threads. I think that the default will be for a module to remain in the main agent/subagent thread unless it explicity registers a multithread capable. The old "we'll give you enough rope to hang yourself", but only if you really ask for it. DS> But how much it is sensible to "bolt on" to the existing code, DS> and how much this would involve a significant restructuring DS> of the overall agent code, I wouldn't like to say. Me either. DS> > I hope you see the problem the same way we do and furthermore we hope DS> > it's a worthwhile task we try to do over here. DS> DS> Oh, it's definitely a worthwhile task, and I wish you well in it! Indeed! I look forward to seeing the paper with the proposal. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
