将用于传播安全属性的缺省传播令牌附加于运行的线程。
The default propagation token that is used for propagating the security attributes is attached to the running thread.
很多人现在都投身于函数式编程的世界,由于它们具有不可变的对象,以及与生俱来的线程安全属性。
Many people are betting on functional programming, with its emphasis on immutable objects and their inherently thread-safe properties.
如果一个调用者想要增加foo属性值,以下完成该功能的代码就不是线程安全的。
If a caller wants to increment the foo property, the following code to do so is not thread-safe.
最安全的方法就是引入一种机制(例如一个公共属性)来向目标线程发出信号,让目标线程请求中断。
The safest is to introduce a mechanism, such as a common property, that signals the target thread to request an interrupt.
最安全的方法就是引入一种机制(例如一个公共属性)来向目标线程发出信号,让目标线程请求中断。
The safest is to introduce a mechanism, such as a common property, that signals the target thread to request an interrupt.
应用推荐