learning threads on linux

前端 未结 5 621
遇见更好的自我
遇见更好的自我 2021-01-13 16:55

Linux is a new platform to me. I\'ve coded on Windows in c++ for a number of years and have become comfortable with multithreading on that platform.

Along comes C++

5条回答
  •  一向
    一向 (楼主)
    2021-01-13 17:39

    Regarding WaitForMultipleObjects, this is generally called a Barrier Sync. Boost has an implementation called barrier. It uses conditional variables to implement it, in posix its a pthread_cond_t

    Here is an answer I left recently explaining barrier sync.

提交回复
热议问题