Re: Strange output with threads

From: Andy Valencia <vandys_at_nospam.org>
Date: Tue Mar 17 1998 - 15:09:52 PST

[pramod@rishi.serc.iisc.ernet.in (Pramod B. S.) writes:]

> I am running VSTa 1.6 on a i486. The following code produces the
> output listed below. Please observe that the Output shown does
> not list all the four printf messages and prints the same
> message("Main thread exiting") twice.
> Any ideas on what could be the possible mistake?

The default VSTa C library has a standard I/O which is not thread safe.
It's a tradeoff of performance of the 99% case (single threaded POSIX app)
versus multi-threaded applications.

                                                Andy Valencia
Received on Tue Mar 17 12:41:21 1998

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:43 PDT