Re: thread safe question
Hi - I thought the exceptions do not apply to my plugins, but then I remembered the case where the cache load/unload code can be running when a handler is called, and vice-versa. I have posted the problems this caused for me earlier. Is this something you plan to fix in the main agent (the is a TODO type of comment in your documentation, which I also posted earlier). Is the cache load module considered one that uses delayed results? Thanks. Kathy McLeod Dept S82 CCB - SNMP IBM Rochester, MN (507) 253-4803 Dave Shield d.t.shi...@liver pool.ac.ukTo Sent by: Kathy McLeod/Rochester/i...@ibmus dave.shi...@googl cc email.com net-snmp-us...@lists.sourceforge.ne t Subject 06/08/2010 02:44 Re: thread safe question AM On 7 June 2010 16:45, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time In general, yes. The exceptions are for requests passed on to subagent, or modules that are explicitly coded to use delayed results. But the basic processing model of the agent framework is a single pipeline. There's no attempt at multi-threading. Dave -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: thread safe question
On 7 June 2010 16:45, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time In general, yes. The exceptions are for requests passed on to subagent, or modules that are explicitly coded to use delayed results. But the basic processing model of the agent framework is a single pipeline. There's no attempt at multi-threading. Dave -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: thread safe question
Great! Thanks for the info. Kathy McLeod Dept S82 CCB - SNMP IBM Rochester, MN (507) 253-4803 Dave Shield d.t.shi...@liver pool.ac.ukTo Sent by: Kathy McLeod/Rochester/i...@ibmus dave.shi...@googl cc email.com net-snmp-us...@lists.sourceforge.ne t Subject 06/08/2010 02:44 Re: thread safe question AM On 7 June 2010 16:45, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time In general, yes. The exceptions are for requests passed on to subagent, or modules that are explicitly coded to use delayed results. But the basic processing model of the agent framework is a single pipeline. There's no attempt at multi-threading. Dave -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
thread safe question
Hi - If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time, or do they get processed together. I.e., do I have to have locking around my static variables? Thanks. Kathy McLeod Dept S82 CCB - SNMP IBM Rochester, MN (507) 253-4803 -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: thread safe question
On Mon, Jun 7, 2010 at 5:45 PM, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time, or do they get processed together. I.e., do I have to have locking around my static variables? In case of doubt you can analyze your application with a thread checker like DRD or Helgrind (Linux, included in Valgrind) or Intel Parallel Studio (Windows). Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: thread safe question
I don't have an application - I am just entering commands at the command line to test the agent. Don't you guys know if you implemented that in the agent (thread safety)? I was trying to test it by sending 2 commands from different systems but I am having major problems with the second system that I don't have time to debug right now. Or did you mean to run the analyzer on the agent, and if so, where are the instructions for that? Thanks. Kathy McLeod Bart Van Assche bvanass...@acm.o rgTo Sent by: Kathy McLeod/Rochester/i...@ibmus bart.vanass...@gm cc ail.com net-snmp-us...@lists.sourceforge.ne t Subject 06/07/2010 01:59 Re: thread safe question PM On Mon, Jun 7, 2010 at 5:45 PM, Kathy McLeod kmcl...@us.ibm.com wrote: If two different clients/managers issue a command to the agent at the same time, does the agent process them one at a time, or do they get processed together. I.e., do I have to have locking around my static variables? In case of doubt you can analyze your application with a thread checker like DRD or Helgrind (Linux, included in Valgrind) or Intel Parallel Studio (Windows). Bart. -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users