Darren New <dne### [at] san rr com> wrote:
> You would be surprised at the number of implementations of malloc() and
> free() that assume you're single-threaded and require locks.
Care to give an example (in a modern OS)? At least Gnu libc uses locking
malloc() and free() (and it's one of the reasons for their slowness).
Quite many multithreaded programs would break if malloc() and free()
were not thread-safe.
--
- Warp
Post a reply to this message
|