Is there a race condition when one thread is constantly querying a variable from memory while another thread updates it?

后端 未结 0 317
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-21 10:25

I have the following code

#include 
#include 
#include 


class A
{
    public:
        A(int n) : num_workers(n) {
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题