开发者

Is commons-exec thread-safe?

Is Apache Commons Exec a thread-safe开发者_高级运维 library?


Unless the javadoc or other documentation claims that certain classes are thread-safe, you should assume that any library is not thread-safe, and address the synchronization concerns yourself. This particularly applies to the case where your application causes instances of the library's classes to be shared by multiple threads.

The exception to this principle is internal thread-safety that is fundamental to the implementation of the library. For that, you are entitled to assume that these concerns have been addressed by the implementors, because if they haven't been the library will be unreliable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜