Multithreading : busy waiting in producer-consumer problem

前端 未结 0 643
遥遥无期
遥遥无期 2020-11-29 07:47
int item_to_produce, curr_buf_size;
int total_items, max_buf_size, num_workers, num_masters;

int *buffer;

void *consume_requests_loop(void *data)
{
  int thread_id         


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