https://github.com/zong4/multi-thread
Complex job system
https://github.com/zong4/multi-thread
cpp jobsystem multithreading threadpool
Last synced: 9 months ago
JSON representation
Complex job system
- Host: GitHub
- URL: https://github.com/zong4/multi-thread
- Owner: zong4
- License: mit
- Created: 2024-07-26T01:42:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-26T02:11:09.000Z (over 1 year ago)
- Last Synced: 2025-02-09T13:14:15.882Z (11 months ago)
- Topics: cpp, jobsystem, multithreading, threadpool
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Multi-thread
## Include
### thread_pool
It's a simple job system rather than thread pool by locks which may loss preformance.
### job_system
To learn Lock-Free Programming firstly.
Here is the plan.
- [✔] Free lock deques
- [✔] Steal jobs
- [✖] **Three deque cache**
- [✖] Distribute jobs
Well, it like a factory, main thread creates jobs -> job poll distributes jobs -> deques in job pool stores jobs -> deques of threads get jobs -> threads do jobs.
Over all, I think the most important theroy in Lock-Free Programming is avoiding collision(like deque or cache).