What is easiest way to create multithreaded applications with C/C++?

前端 未结 15 1558
遥遥无期
遥遥无期 2021-02-06 11:05

What is the easiest way to create multithreaded applications with C/C++?

15条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 11:25

    The easiest way is by avoiding/minimizing mutable shared state.

    Once you have mutable shared state, you need to deal with locking which is where the bulk of the difficulty in writing multi-threaded programs exists.

提交回复
热议问题