# cthreadpool **Repository Path**: jesson-deng/cthreadpool ## Basic Information - **Project Name**: cthreadpool - **Description**: C 语言实现的一个线程池 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-05 - **Last Updated**: 2025-03-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # threadpool #### 介绍 简单实用的线程池(C语言实现) pthread_join 是 POSIX 线程(pthread)库中的一个重要函数,用于 等待指定线程终止,并获取该线程的返回值。它的主要作用是实现线程间的同步,确保主线程(或其他线程)能够等待子线程完成任务后再继续执行。 pthread_cancel 是 POSIX 线程(pthread)库中的一个函数,用于 请求取消指定线程。它的作用是向目标线程发送一个取消请求,目标线程可以选择立即终止或在合适的时机终止。