Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
10 Views

pthreads and memmove compatible with scallable malloc/free?


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
Highlighted
10 Views

Yes, it should work.
0 Kudos