Thread: glibc malloc() and Posix Threads

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    14

    glibc malloc() and Posix Threads

    Hi I have been trying to figure out if malloc() from glibc is thread safe and if it isn't can someone point me in the right direction to look for a thread safe implementation of malloc? and I know it can be done through locks but is not reliable in application.


    Thanks in advance.

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    It is thread safe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. POSIX Threads and dynamic memory allocation
    By PING in forum Linux Programming
    Replies: 1
    Last Post: 04-02-2009, 10:28 AM
  2. Problem with POSIX sockets
    By MCRonald in forum C Programming
    Replies: 2
    Last Post: 07-23-2006, 10:41 AM