From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net From: erik quanstrom Date: Thu, 31 Jul 2008 11:20:22 -0400 Message-ID: <18d1c45531cde368698eead48687c6c5@coraid.com> In-Reply-To: <3e1162e60807310728o4cf78211ud5ad698d252f972b@mail.gmail.com> References: <2049e07e918215a675b00f15ee549436@quanstro.net> <3e1162e60807310728o4cf78211ud5ad698d252f972b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Plan 9 on Blue Gene Topicbox-Message-UUID: f87bac44-ead3-11e9-9d60-3106f5b1d025 > Obviously depending on the C calls involved, some are re-entrant and some > are not, and that makes a rather large difference too. You don't want to > call strtok from two different threads (unless you have thread local storage > available, then it might be safe). malloc? it should be available everywhere. while the heap is not thread-local, if the pointer to it is on the stack, functions like strtok may be used. - erik