Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2424 Discussions

pthreads and memmove compatible with scallable malloc/free?

Craig_Sharp
Beginner
140 Views

Hello,

I'm developing a multi-threaded application in C using pthreads on Linux but I need to avoid heap contention when allocating memory, hence I want to use the scalable memory allocation routines provided by TBB, namely malloc, realloc, calloc and free.

Before I switch however, I need to know will those routines work with pthreads and are the library functions memmove/memcopy compatible with these TBB routines too?

Can anyone help answer this?

Many thanks.
0 Kudos
1 Reply
Alexandr_K_Intel1
140 Views
Yes, it should work.
Reply