`
jlj008
  • 浏览: 96712 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How to make thread safe

阅读更多
How to make thread safe
1.Use immutable objects
2.Use effectively immutable objects(safely published and not modifyied after constructed)
3.Use synchronize(access actions and atomic compound actions)
4.Use thread confinement
5.Delegate safety to thread safe state instance
分享到:
评论

相关推荐

    VB编程资源大全(英文源码 API)

    If you follow the logic of the program it does teach a lot about multithreading and the necessary techniques to do this in a 'Thread Safe environmen<END><br>37,callback.zip This small project is ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    How can we use a class Foo in a header file without access to its definition? We can declare data members of type Foo* or Foo&. We can declare (but not define) functions with arguments, and/or ...

    Clojure.High.Performance.JVM.Programming.epub

    It has some interesting concepts and features such as immutability, gradual typing, thread-safe concurrency primitives, and macro-based metaprogramming, which makes it a great choice to create modern...

    VclZip pro v3.10.1

    Filenames stored in a PKZip compatible archive normally go through an OEM conversion to make them ascii compatible. When opening the zip file the conversion is undone. If you do not plan on having ...

    Sakemail

    Some stupid mail servers put tabs in some fields (CC:, TO:) when they want to make a new line, the correct is to put at least a space in the beginning of the line, added a little code to "...

    elasticsearch-py-readthedocs-io-en-7.7.1.pdf

    The `elasticsearch-py` library is designed to be thread-safe, making it suitable for multi-threaded applications. This means that multiple threads can safely use the same client instance without ...

    DbfDotNet_version_1.0_Source

    How does it compare to ADO.Net, SQL, SqlLite, SharpSQL ... I did some speed test against another database (which I won't name) The results are quite encouraging. Dbf.Net ADO.Net Collapse Copy ...

    Visual C++ 编程资源大全(英文源码 表单)

    step1.zip Simple step by step article explaining how to create a modeless dialog box as child window.(21KB)<END><br>97,step2.zip Simple step by step article explaining how to create a modeless ...

    Effective C#

    - **Rationale:** Conversion operators can make it difficult to understand the flow of code and can introduce unexpected behaviors. - **Alternative:** Use explicit methods for conversions. **Item 10: ...

    BobBuilder_app

    Multi-thread-able and parallel-able usage. Pages should be linked together so you can do range queries by going to the next page easily. The MGIndex MGIndex takes the best features of a b+tree and ...

    python3.6.5参考手册 chm

    PEP 442: Safe Object Finalization PEP 456: Secure and Interchangeable Hash Algorithm PEP 436: Argument Clinic Other Build and C API Changes Other Improvements Significant Optimizations ...

Global site tag (gtag.js) - Google Analytics