in reply to threads and SNMP Session

Hi, I've no experience with SNMP and threads, but you really need to show us a bit more code. You only show 1 thread being created, but you talk about multiple threads. Are you sure you are not overwriting threads, so it seems like you are stopping the others?

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: threads and SNMP Session
by Otogi (Beadle) on Dec 19, 2005 at 22:36 UTC
    when testing I just add
    my thr = threads->create(\&test,"host","string","2"); my thr2 = threads->create(\&test,"newhost","string","2");
    to the code and no matter how many threads I add the last one is the only one to return data. I dont know what else to add if you require anything more please tell me. thanks.
Re^2: threads and SNMP Session
by Anonymous Monk on Dec 19, 2005 at 22:17 UTC
    when testing I just add
    my thr = threads->create(\&test,"host","string","2"); my thr2 = threads->create(\&test,"newhost","string","2");
    to the code and no matter how many threads I add the last one is the only one to return data. I dont know what else to add if you require anything more please tell me. thanks.