It may be easier to manage the use of a non-thread-safe class than to try and make the class thread-safe.
管理非线程安全类的使用比试图使类成为线程安全的要更容易些。
An effective technique for creating a fully thread-safe class is to merge the synchronization class into the resource class.
创建完全线程安全类的有效技术是将同步类合并到资源类中。
An effective technique for creating a fully thread-safe class is to merge the synchronization class into the resource class.
创建完全线程安全类的有效技术是将同步类合并到资源类中。
应用推荐