[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pthreads] performance test using fib.scm

From: Wolfgang Jaehrling
Subject: Re: [pthreads] performance test using fib.scm
Date: Tue, 10 Dec 2002 22:10:10 +0100
User-agent: Mutt/1.3.28i

On Tue, Dec 10, 2002 at 07:16:04PM +0100, Mikael Djurfeldt wrote:
> Still, for large fibonnaci numbers and large branch depths (many
> threads), Guile often crashes in realloc.  That function should be
> thread safe, shouldn't it?

malloc() in glibc is thread-save, but not reentrant.  Since the
behaviour of realloc() is unlikely to differ from malloc() in this
respect, you most certainly have to protect calls to it with a lock.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]