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

Can this replace pthreads? #1652

Open
eabase opened this issue Feb 25, 2025 · 1 comment
Open

Can this replace pthreads? #1652

eabase opened this issue Feb 25, 2025 · 1 comment
Labels

Comments

@eabase
Copy link

eabase commented Feb 25, 2025

I'm wondering if this can somehow replace the pthreads ?

@isaevil
Copy link
Contributor

isaevil commented Feb 26, 2025

TBB doesn't provide you a fine-grained control over threads like pthreads do. What it does is provides you various interfaces (e.g. parallel algorithms like parallel_for, parallel_sort or ) to easily write a parallel application. So it depends on what you are going to achieve: for example if you are trying to implement a parallel version of some algorithm or just trying to do some work asynchronously then TBB is an appropriate choice for this. You can take a look at our documentation https://uxlfoundation.github.io/oneTBB/ to find some examples of usage of oneTBB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants