[SNMP4J] USMTable and thread safety
Frank Fock
fock at agentpp.com
Sun Mar 10 16:59:40 CET 2019
Hello Girish,
A class USMTable does not exists in SNMP4J. Do you meant another class or is this class from a third party?
Best regards,
Frank
> On 8. Mar 2019, at 16:57, Girish Venkatasubramanian <girishvs at gmail.com> wrote:
>
> Hello
> I was wondering if the USMTable is thread safe.
>
> I see that the USMTable uses a TreeMap which itself is not synchronized
> (say, unlike a concurrent hash map).
>
> Even though the functions that access it are synchronized it would not
> prevent a scenario where one thread is calling removeAllUsers() and another
> thread is invoking addUser() - yes ? Is there some synchronization
> mechanism that I am missing ?
>
> Would appreciate your response.
> Thanks
> Girish
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://oosnmp.net/mailman/listinfo/snmp4j
More information about the SNMP4J
mailing list