浅墨浓香

想要天亮进城,就得天黑赶路。

导航

2017年2月19日

摘要: 5.3 读写锁 (1)读写锁简介 ①线程使用互斥锁缺乏读并发性 ②当读操作较多,写操作较少时,可使用读写锁提高线程并发性 ③读写锁数据类型:pthread_rwlock_t (2)读写锁的操作 ①创建和释放读写锁 头文件 #include <pthread.h> 函数 int pthread_rwl 阅读全文

posted @ 2017-02-19 13:08 浅墨浓香 阅读(498) 评论(0) 推荐(0) 编辑