POV-Ray : Newsgroups : povray.off-topic : A tale of two cities : Re: A tale of two cities Server Time
29 Jul 2024 14:20:12 EDT (-0400)
  Re: A tale of two cities  
From: Warp
Date: 16 Mar 2012 07:41:53
Message: <4f632701@news.povray.org>
Darren New <dne### [at] sanrrcom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.