Re: thread: reentrant question

Michał Nazarewicz <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
2009/12/26 Randi Botse <[email protected]>:
> Hi Vinit,
>
> So, does this function actually reentrant when free() has not been
> called?, thanks for your explanation.

This function is reentrant both when free(3) is called and when
free(3) is not called (but it introduce memory leaks in the second
case).

As I've written before, the only issue may be with printf(3) as output
from various threads may get mixed together.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.