{"id":19905683,"url":"https://github.com/578223592/thread_pool_c11","last_synced_at":"2025-09-19T01:32:34.412Z","repository":{"id":187506528,"uuid":"677029494","full_name":"578223592/thread_pool_c11","owner":"578223592","description":"从0开始实现一个高性能的线程池","archived":false,"fork":false,"pushed_at":"2024-02-06T09:21:08.000Z","size":120,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-12T20:47:57.702Z","etag":null,"topics":["thread-pool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/578223592.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-10T15:13:41.000Z","updated_at":"2024-09-13T02:58:50.000Z","dependencies_parsed_at":"2024-02-06T10:28:51.592Z","dependency_job_id":"b432b1a5-3674-4f32-ac1c-50dd88d36a68","html_url":"https://github.com/578223592/thread_pool_c11","commit_stats":null,"previous_names":["578223592/thread_pool_c11"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/578223592%2Fthread_pool_c11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/578223592%2Fthread_pool_c11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/578223592%2Fthread_pool_c11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/578223592%2Fthread_pool_c11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/578223592","download_url":"https://codeload.github.com/578223592/thread_pool_c11/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233541828,"owners_count":18691591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["thread-pool"],"created_at":"2024-11-12T20:34:15.146Z","updated_at":"2025-09-19T01:32:34.043Z","avatar_url":"https://github.com/578223592.png","language":"C++","readme":"# thread_pool_high_performance\n\n![thread_pool_c11](https://socialify.git.ci/578223592/thread_pool_c11/image?description=1\u0026font=Source%20Code%20Pro\u0026language=1\u0026name=1\u0026pattern=Circuit%20Board\u0026theme=Auto)\n\n本项目的目的是从0开始使用一些高级的技术实现一个高性能的线程池，并对比加入不同的技术之后其性能表现，用以作为其他项目的底层支撑\n\n本项目最终的线程池支持的功能：\n\n- 任务调度优化：比常规的线程池调度速度更快\n- 支持优先级任务：支持按不同的优先级执行任务\n- 线程池数量的动态调整：\n- 长时任务的特殊分配，避免阻塞短时任务\n\n## doc\n\n- [线程池用到的新特性](./docs/涉及的新特性总结.md)\n\n## 文件夹内容说明\n\ntodo：待完成后进行说明，如果看到这条可以issue提醒我\n\n```\n├── src\n│ ├── version_1_inception 原始版本\n│ │ └── include\n│ └── version_2_high_performace 根据线程池手写版本，侧重运行逻辑的优化\n│ └── include\n```\n\n## 如何测试\n在tests文件夹中，随着项目进行进行补充\n\n\n## 哪里可以使用？\n理论上使用到多线程技术的项目都可以拿这个作为一个底层的支撑项目\n### webServer\n\n本项目主要用于webserver的优化:处理异步的一些无关紧要但是耗时的任务,这里也是模仿的redis：\n\n- 关闭文件\n- Redis中是unlink，可以使用线程池来管理LFU的缓存部分释放内存，将free任务交给线程池异步处理\n- 其他可以异步执行的程序\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F578223592%2Fthread_pool_c11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F578223592%2Fthread_pool_c11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F578223592%2Fthread_pool_c11/lists"}