Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add third party thread pool #883

Merged
merged 12 commits into from
Aug 16, 2023
Merged

add third party thread pool #883

merged 12 commits into from
Aug 16, 2023

Conversation

astrophysik
Copy link
Contributor

@astrophysik astrophysik commented Aug 14, 2023

General

Main goal of this pr is to add simple third-party thread pool to test some hypotheses. The implementation from here was chosen as the baseline. In the future, this library may be chosen.

Details

An option thread-pool-ratio has been added to define the number of threads. That define threads count ratio of the overall cpu numbers

Also this pr add simple parallel function do_parallel_job(...) to check if the system is working well

@astrophysik astrophysik requested a review from DrDet August 14, 2023 10:39
@astrophysik astrophysik force-pushed the vsadokhov/thread-pool branch 3 times, most recently from a88694c to b881171 Compare August 16, 2023 09:10
@astrophysik astrophysik added this to the next milestone Aug 16, 2023
@astrophysik astrophysik added the runtime Feature related to runtime label Aug 16, 2023
@astrophysik astrophysik force-pushed the vsadokhov/thread-pool branch 6 times, most recently from 99dcd46 to b7f7219 Compare August 16, 2023 14:34
runtime/thread-pool.cpp Outdated Show resolved Hide resolved
runtime/thread-pool.cpp Outdated Show resolved Hide resolved
runtime/interface.cpp Outdated Show resolved Hide resolved
runtime/interface.cpp Outdated Show resolved Hide resolved
server/server-stats.cpp Show resolved Hide resolved
DrDet
DrDet previously approved these changes Aug 16, 2023
@astrophysik astrophysik merged commit 7de5517 into master Aug 16, 2023
5 checks passed
@astrophysik astrophysik deleted the vsadokhov/thread-pool branch August 16, 2023 18:05
@astrophysik astrophysik self-assigned this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
runtime Feature related to runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants