How to detect and debug multi-threading problems?

前端 未结 17 1872
陌清茗
陌清茗 2020-11-29 16:12

This is a follow up to this question, where I didn\'t get any input on this point. Here is the brief question:

Is it possible to detect and debug problems co

17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 16:51

    Develop code the way that Princess recommended for your other question (Immutable objects, and Erlang-style message passing). It will be easier to detect multi-threading problems, because the interactions between threads will be well defined.

提交回复
热议问题