Hi Rushik,

Sharing a single Snmp instance by multiple threads is OK (it is intended for that usage). You can use then both synchronous and asynchronous requests in any combination.

Best regards,
Frank

Am 09.03.2016 um 18:43 schrieb [email protected]:
I am using MOSubTreeProxy to forward a subTree OID to a remote agent and its 
working perfectly.
My question I have another thread that is  polling the same remote agent.
Is it better to share the same snmp instance b/w the MOSubTreeProxy class and 
my other thread  or create a new snmp instance in the thread.
How thread-safe is snmp class if shared in multiple threads? thanks
Rushik Patel
                                        
_______________________________________________
SNMP4J mailing list
[email protected]
https://oosnmp.net/mailman/listinfo/snmp4j

--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231

_______________________________________________
SNMP4J mailing list
[email protected]
https://oosnmp.net/mailman/listinfo/snmp4j

Reply via email to