Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Lotus-FromDomain: JPMORGAN AT SMTP From: "Noel L Yap" To: kulack AT us DOT ibm DOT com cc: Cygwin AT Sourceware DOT Cygnus DOT Com Message-ID: <85256920.0066081D.00@nyc-ntgw-n01.ny.jpmorgan.com> Date: Tue, 18 Jul 2000 14:34:31 -0400 Subject: Re: Is cygnus multithreadability usable? Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline I think printf(), by definition, is not threadsafe. The caller is responsible for making threadsafe calls to it. Noel kulack AT us DOT ibm DOT com on 2000.07.18 14:18:40 To: cygwin AT sourceware DOT cygnus DOT com cc: (bcc: Noel L Yap) Subject: Re: Is cygnus multithreadability usable? > Multithread-safe support is turned on by default in 1.1.x releases. > That does not mean that it is bug free. > cgf Interesting. I was using just a minimal amound of C runtime stuff (mainly printf), and noticed thread safety problems so I just assumed it wasn't safe. For my projects, it didn't matter much, but now that you mention the above, it might just be a simple bug. Thread 1: printf("abc\n"); Thread 2: printf("xyz\n") Frequently results in the newlines intermingling: On one occasion I believe that the output was more mixed than that, but I could be making that up... 8-) -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its subsidiaries and affiliates. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com