commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Is commons Net thread safe?
Date Thu, 01 Jul 2004 17:28:16 GMT

In message <BAY1-DAV11mYDKFJ2I1000220af@hotmail.com>, "Farooque Khan" writes:
>I am particularly interested in telnet component.

Assuming you're talking about the TelnetClient class; there is no
mutable state shared between TelnetClient instances.  Therefore separate
instances can be safely used in separate threads without creating an
unexpected state.  If you wish to concurrently call methods of a single
TelnetClient instance from separate threads, you will need to protect access
to the instance with a critical section.

daniel





---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message