开发者

Is commons-exec thread-safe?

开发者 https://www.devze.com 2022-12-27 01:57 出处:网络
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

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

精彩评论

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