Hmm, libc_r and libpthread handle spinlock differently which malloc
uses to protect itself, some real world benchmarks are better than this.
Andriy Tkachuk wrote:
But if one wants to use pure user threads
on his UP system, what he will chose if not libc_r ?
And i have some test program with shows
the better results for libc_r than for libpthreads.
Take a look.
The program is the 500 threads, each of them allocate
memory in loop and then free it in another loop.
Program outputs the time consumed for this two loops.
See the results.