delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/21/20:29:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Sent: 22 May 2001 00:28:42 GMT
From: "Andrew de Quincey" <andrew AT orbital DOT co DOT uk>
To: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>, <cygwin AT cygwin DOT com>
Subject: RE: Strange fork() behaviour under cygwin v1.3.1
Date: Tue, 22 May 2001 01:15:28 +0100
Message-ID: <HIEIJMBKKKLAMEGLLMOFCENBCBAA.andrew@orbital.co.uk>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal
In-Reply-To: <EA18B9FA0FE4194AA2B4CDB91F73C0EF79E6@itdomain002.itdomain.net.au>

>
> > -----Original Message-----
> > From: Andrew de Quincey [mailto:andrew AT orbital DOT co DOT uk]
> > Sent: Tuesday, May 22, 2001 9:01 AM
> > To: cygwin AT cygwin DOT com
> > Subject: Strange fork() behaviour under cygwin v1.3.1
> >
> >
> >
> > Hi, I've been playing with the jabber server under win32...
> > and I've run
> > into a slight problem. The following program illustrates it:
> >
> > +++++++++++++++++++++++++++++++++++++++++++++++++
> > #include <pth.h>
>
> Whats <pth.h> ? If it's the GNU portable threads library, and it's using
> a native thread library instead of 100% emulated threads, make sure its
> using pthreads, not win32 threads. (Explanation: Cygwin is ignorant of
> direct win32 thread calls you might make, but it knows about pthreads).

It is indeed the Gnu portable threads library, as used by the jabber
developers.

GNU pth describes itself as:

> Pth is a very portable POSIX/ANSI-C based library for
> Unix platforms which provides non-preemptive priority-based
> scheduling for multiple threads of execution (aka
> `multithreading') inside event-driven applications.

From the "non-preemptive-ness" & the lack of any pthread or win32 thread
functions in it, it sounds like an entirely user-space threading library.

> [snip]

>
> ****** IMPORTANT *******
> When writing or testing threading code, ___always___ check return values
> and error flags.
>
> I realise that that isn't the problem here: your thread function does
> run, but all the same!
> ************************

That stuff was copied directly out of the jabber server source! :)))

> [snip]


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019