.github/workflows docs tests LICENSE README.md example.c thpool.c thpool.h README MIT license C Thread Pool This is a minimal but advanced threadpool implementation. ANCI C and POSIX compliant Pause/resume/wait as you like Simple easy-to-digest API ...
A minimal but powerful thread pool in ANSI C. Contribute to Pithikos/C-Thread-Pool development by creating an account on GitHub.
https://github.com/Pithikos/C-Thread-Pool 这是一个简单小巧的C语言线程池实现,在 Github 上有 1.1K 的 star,很适合用来学习 Linux 的多线程编程。 另外,里面还涉及到了信号、队列、同步等知识点,代码读起来还是挺过瘾的。 特点: 符合ANCI C and POSIX; 支持暂停/恢复/等待功能; 简洁的 API; 经过严格的...
(int)pthread_self(),(int)arg);}intmain(){puts("Making threadpool with 4 threads");threadpool thpool=thpool_init(4);puts("Adding 10 tasks to threadpool");int i;for(i=0;i<8;i++){thpool_add_work(thpool,task,(void*)(uintptr_t)i);};thpool_wait(thpool);puts("Killing threadpool"...
https://github.com/Pithikos/C-Thread-Pool 这是一个简单小巧的 C 语言线程池实现,在 Github 上有 1.1K 的 star,很适合用来学习Linux的多线程编程。 另外,里面还涉及到了信号、队列、同步等知识点,代码读起来还是挺过瘾的。 特点: 符合ANCI C and POSIX;支持暂停 / 恢复 / 等待功能;简洁的API;经过严格的...
https://github.com/SCljh/thread_pool 原文链接:https://blog.csdn.net/ACMer_L/article/details/107578636 推荐视频:150行代码手写线程池:bilibili.com/video/BV1yQ4y1o7zv/ C/C++Linux服务器开发/架构师教学:https://ke.qq.com/course/417774?flowToken=1031343 ...
* @struct threadpool_task * @brief the work struct * * @var function Pointer to the function that will perform the task. * @var argument Argument to be passed to the function. */ typedef struct { void (*function)(void *); void *argument; ...
https://github.com/Pithikos/C-Thread-Poolgithub.com/Pithikos/C-Thread-Pool API分析 这个项目使用C语言实现了最为简单的线程池技术,初学者也可以通过这个项目快速理解并使用到自己的线程池,下面是这个项目所提供的API,所有API的介绍都在:thpool.h 中 ...
* @struct threadpool_task * @brief the work struct * * @var function Pointer to the function that will perform the task. * @var argument Argument to be passed to the function. */ typedef struct { void (*function)(void *); void *argument; ...
③项目地址:https://github.com/yuesong-feng/30dayMakeCppServer ④类型:免费 2.《btop》(命令行资源监视器) ①语言:c++ ②来源:GitHub 目前star:16.1k ③项目地址:https://github.com/aristocratos/btop ④类型:免费 3.C++轻量级WebServer服务器