Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Task library for C?

Is there a task library for C? I'm talking about the parallel task library as it exists in C#, or Java. In other words, I need a layer of abstraction over pthread for Linux. Thanks.

like image 793
Dervin Thunk Avatar asked Dec 04 '25 14:12

Dervin Thunk


1 Answers

Give a look at OpenMP. In particular, you might be interested in the Task feature of OpenMP 3.0.

I suggest you, however, to try to see if your problem can be solved using other, "basic" constructs, such as parallel for, since they are simpler to use.

like image 194
akappa Avatar answered Dec 07 '25 04:12

akappa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!