摘要:
System V IPC 将一个已保存的路径名和一个整数标识符转换成一个key_t值,称为IPC键key_t:System V IPC(System V消息队列、System V信号量、System V共享内存区)将key_t作为它们的名字 ipc_perm结构: 内核给每个IPC对象维护一个信息结 阅读全文
posted @ 2018-09-24 23:11
荒唐了年少
阅读(222)
评论(0)
推荐(0)
摘要:
互斥锁 条件变量: pthread_cond_wait必须放在pthread_mutex_lock和pthread_mutex_unlock之间,因为他要根据共享变量的状态来觉得是否要等待,而为了不永远等待下去所以必须要在lock/unlock队中 pthread_cond_signal通常唤醒等在 阅读全文
posted @ 2018-09-24 23:05
荒唐了年少
阅读(809)
评论(0)
推荐(0)

浙公网安备 33010602011771号