# lpthread **Repository Path**: zyf/lpthread ## Basic Information - **Project Name**: lpthread - **Description**: 用来学习 pthread 的项目 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-20 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lpthread 我学习 pthread 的代码仓库 ## 非常合适的学习顺序为 1. mutex.c 互斥量 2. cond.c 条件变量 3. rwlock.c 读写锁 4. sem.c 信号量。还使用信号两模拟了互斥量和读写锁 5. deadlock.c 死锁示例 6. spinlock.c 自旋锁 7. once.c pthread_once 函数的使用 8. tsd.c 线程私有数据 9. barrier.c 栅栏同步