- 论坛徽章:
- 0
|
http://ftp.gnu.org/gnu/glibc/gli ... glibc-2.0.1/malloc/
Malloc implementation for multiple threads without lock contention.
On many systems, the standard malloc implementation is by itself not
thread-safe, and therefore wrapped with a single global lock around
all malloc-related functions. In some applications, especially with
multiple available processors, this can lead to contention problems
and bad performance. This malloc version was designed with the goal
to avoid waiting for locks as much as possible. Statistics indicate
that this goal is achieved in many cases.
链接在这里:
http://www.google.com/codesearch ... /malloc/malloc.c#a0 |
|