Using mutexes with detached threads in C

后端 未结 0 1331
终归单人心
终归单人心 2020-12-18 08:03
#define SIZE 10

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;

show(void *arg)
{
    pthread_mutex_lock(&mutex);
    int i = *(int *)arg;
    printf("         


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