Thread Safety in C

前端 未结 9 1957
余生分开走
余生分开走 2021-02-02 01:01

imagine I write a library in C. Further, imagine this library to be used from a multi-threaded environment. How do I make it thread-safe? More specific: How do

9条回答
  •  迷失自我
    2021-02-02 01:22

    You also should avoid static and global variables that can be modified avoiding synchronization code all over your module

提交回复
热议问题