Hi Robert! RS> That will be a less than simple task. There has been no RS> prior work done in this area, so you'll be breaking new RS> ground. One of the biggest problems you will run into RS> is global variables.
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. We don't want to make all the mibs already implemented thread-safe. What we would like to do is to make AgentX and the Masteragents AgentX-dispatching multi-treaded and indeed we are already writing a document referencing the code areas that are critical for AgentX dispatching in a multi-threaded way. When we have the first draft version of the document we can tell you what we found out and we would appreciate you to review the paper, as far as your agenda allows. So what we do right now is to look at the critical session structs (global) and transport functions and we try to make the session and transport functions thread-safe first, cause we got this good hint from Mike Slifcak. By the way we try to match the MTCRITICAL_RESOURCE comments too, which Mike indicated as well, which sometimes seems to be really useful to us. I hope the problem is not too "sticky" and we are looking forward getting feedback and, from time to time, useful help from you. Have a nice day! Sincerely, -Daniel Fallmann -----Urspr�ngliche Nachricht----- Von: Robert Story (Coders) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. August 2004 23:44 An: Daniel Fallmann Cc: [EMAIL PROTECTED] Betreff: Re: How to make Net-SNMP threadsafe On Fri, 6 Aug 2004 09:46:56 +0200 Daniel wrote: DF> We would like to invest some time to make the net-snmp lib threadsafe As Mike indicated, there are already portions that are thread safe, if used with caution. DF> and furthermore we would like to make the snmpd process requests DF> mutithreaded. That will be a less than simple task. There has been no prior work done in this area, so you'll be breaking new ground. One of the biggest problems you will run into is global variables. Do you just want the core agent multi-threaded, or were you hoping for all the mibs to be multi-threaded as well? If you need the mibs multi-threaded as well, I think you are in for a long, strange trip. What problem are you trying to solve with multi-threading? There may be an easier solution (AgentX subagents is a good alternative). -- 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. ------------------------------------------------------- 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 ------------------------------------------------------- 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
