public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Is cygnus multithreadability usable?
@ 2000-07-18 11:34 Noel L Yap
  2000-07-18 12:19 ` Chris Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: Noel L Yap @ 2000-07-18 11:34 UTC (permalink / raw)
  To: kulack; +Cc: Cygwin

I think printf(), by definition, is not threadsafe.  The caller is responsible
for making threadsafe calls to it.

Noel




kulack@us.ibm.com on 2000.07.18 14:18:40

To:   cygwin@sourceware.cygnus.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:
<abcxyz

>
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@sourceware.cygnus.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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is cygnus multithreadability usable?
  2000-07-18 11:34 Is cygnus multithreadability usable? Noel L Yap
@ 2000-07-18 12:19 ` Chris Faylor
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Faylor @ 2000-07-18 12:19 UTC (permalink / raw)
  To: Cygwin

On Tue, Jul 18, 2000 at 02:34:31PM -0400, Noel L Yap wrote:
>I think printf(), by definition, is not threadsafe.  The caller is responsible
>for making threadsafe calls to it.

Right.

cgf

>kulack@us.ibm.com on 2000.07.18 14:18:40
>
>To:   cygwin@sourceware.cygnus.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:
><abcxyz
>
>>
>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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is cygnus multithreadability usable?
  2000-07-14 19:58   ` Chris Faylor
@ 2000-07-21  7:03     ` David Starks-Browning
  0 siblings, 0 replies; 6+ messages in thread
From: David Starks-Browning @ 2000-07-21  7:03 UTC (permalink / raw)
  To: cygwin

On Friday 14 Jul 00, Chris Faylor writes:
> On Sat, Jul 15, 2000 at 05:50:23AM +0300, -Kaatunut wrote:
> >... . FAQ said Cygwin isn'tmultithread-safe, but it also
> >said it's an obsolete entry. So what's the real status? Will multithreading
> >go down in flames?
> 
> Multithread-safe support is turned on by default in 1.1.x releases.
> 
> That does not mean that it is bug free.

I'll update this entry in the FAQ.

Regards,
David


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is cygnus multithreadability usable?
@ 2000-07-18 11:19 kulack
  0 siblings, 0 replies; 6+ messages in thread
From: kulack @ 2000-07-18 11:19 UTC (permalink / raw)
  To: cygwin

> 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:
<abcxyz

>
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@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Is cygnus multithreadability usable?
  2000-07-14 19:53 ` -Kaatunut
@ 2000-07-14 19:58   ` Chris Faylor
  2000-07-21  7:03     ` David Starks-Browning
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Faylor @ 2000-07-14 19:58 UTC (permalink / raw)
  To: cygwin

On Sat, Jul 15, 2000 at 05:50:23AM +0300, -Kaatunut wrote:
>I have a project that almost requires multithreading. So far I have managed
>to compile it fine under Cygwin (I develop it on RH6), but multithreading
>seems a bit of problem. FAQ said Cygwin isn'tmultithread-safe, but it also
>said it's an obsolete entry. So what's the real status? Will multithreading
>go down in flames?

Multithread-safe support is turned on by default in 1.1.x releases.

That does not mean that it is bug free.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Is cygnus multithreadability usable?
       [not found] <396F6E0D.50D3E7D7@iki.fi>
@ 2000-07-14 19:53 ` -Kaatunut
  2000-07-14 19:58   ` Chris Faylor
  0 siblings, 1 reply; 6+ messages in thread
From: -Kaatunut @ 2000-07-14 19:53 UTC (permalink / raw)
  To: cygwin

I have a project that almost requires multithreading. So far I have managed
to compile it fine under Cygwin (I develop it on RH6), but multithreading
seems a bit of problem. FAQ said Cygwin isn'tmultithread-safe, but it also
said it's an obsolete entry. So what's the real status? Will multithreading
go down in flames?

 -Kaatunut



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-07-21  7:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-18 11:34 Is cygnus multithreadability usable? Noel L Yap
2000-07-18 12:19 ` Chris Faylor
  -- strict thread matches above, loose matches on Subject: below --
2000-07-18 11:19 kulack
     [not found] <396F6E0D.50D3E7D7@iki.fi>
2000-07-14 19:53 ` -Kaatunut
2000-07-14 19:58   ` Chris Faylor
2000-07-21  7:03     ` David Starks-Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).