X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=lClLSQB
	pCuF9XajPteF86CJaTWAcl0XU42VNPTMgxzbrGEzfEQ7nS5D/kjM63jPmRApXKUX
	CmUrX/aSGu8ssMqd/kPCo/L7ZcqIzzQMY2Yx+XMQHDycZf7PtgCKEb7085g/w0/8
	4zuZEMMNtxsNXkG0magQf+YVSmVPQCRrJqwk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=6NHjp3xs7wGQl
	aluq4QzM/v5fSE=; b=xGWR8B2pyxipLmLGJA4CkeLZHXtJTQa0SqDCadMUyQror
	V9XaUZP4WjcrSLCtareggN0OBBMWFu0q74dxEDqF8KLben4Z0i9VNbLkIRdq8qV/
	M3sp0F4ZRlHzFHigpl61H4tMPib49/bGjEOTajopd/TrkENMHpdPZubtEMrjvY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=corinna-cygwin@cygwin.com, U*corinna-cygwin, corinnacygwincygwincom, sk:corinna
X-HELO: fe3.lbl.gov
X-Ironport-SBRS: 2.7
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A2HsAACOjMBYf8fcVdFeGwEBAQMBAQEJAQEBFwEBBAEBCgEBhAeBCgeDWYp/kFmXRSaFfAKCPgdDFAEBAQEBAQEBAQEBAhABAQkLCwgmMYIzIg1GWAEBAQEBASMCDV4BAgMjZgsLDQICJgICIhIBBQEcGYl/BaQdP4wDgiaKfQEBAQEGAQEBAR8FCQEIeYoyhSCCOoJfAQSQV4UjhjyGdotCgWMYhSODIoZgSJEvFB6BFTaBJRkLEyVlBYZWV4oTAQEB
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to;        bh=oxNnwmoRFtINQ22FF4WFQ6XgvgXKF6apeKfh0p661FU=;        b=E9iXM7K9bCcmmEJzahoQSYgDfGUqCipwpLizac7dRIakm8drH7f700etLg8pnCzuIQ         CvtjyChKKT1Bzc0YqqUlfgR96g6eBkHYydbRkHBRqIcr/BBmk6ILk2yN5+Fodke8DFGC         yz47oX0xjC/yt9VA+HYNA+JLGq4dYianO9Ai7z05EyNKheELLHXkOL5B8pAmw6fiGRqO         sxNT/MELSTDkcBIQG9yYXxqM/45j0YB6cP1OzxmNnEXk14EEVkrOcL5ycrOk3RPv7eAF         bE4+kcduzVk3iOyXlyegSmDJV9gynGoB6Bmv3ny54ZRtgNT1jHFyYudBE8lZFIaTXadX         NirQ==
X-Gm-Message-State: AFeK/H2+hVZzh4R9hfw2XVj6JUn3MDb75dZ6VdfmNojcjkXqgYy3q23xpD04gSJI6SotkdSI79wT8TWxTDNZn2zV42ZaQZ04WIzqA6N2GWKCtEtkE/fIJOvKkKjUL8Zt1RTTzQ==
X-Received: by 10.55.152.7 with SMTP id a7mr122316qke.45.1489014101797;        Wed, 08 Mar 2017 15:01:41 -0800 (PST)
X-Received: by 10.55.152.7 with SMTP id a7mr122288qke.45.1489014101572;        Wed, 08 Mar 2017 15:01:41 -0800 (PST)
X-Received: by 10.55.23.31 with SMTP id i31mr11130821qkh.139.1489014099619; Wed, 08 Mar 2017 15:01:39 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <20170308164853.GA1559@calimero.vinschen.de>
References: <CAJTO8-Z7Dn-cqt3zcgP26zbECtx2-TjKYQSEXLJbST-mDMaLow@mail.gmail.com> <20170308164853.GA1559@calimero.vinschen.de>
From: Dan Bonachea <dobonachea@lbl.gov>
Date: Wed, 8 Mar 2017 18:00:59 -0500
X-Gmail-Original-Message-ID: <CAJTO8-ZOuu9_6zCB3XWtUOoJC+GbEBEtjnTPwxpeSW7UcntVQQ@mail.gmail.com>
Message-ID: <CAJTO8-ZOuu9_6zCB3XWtUOoJC+GbEBEtjnTPwxpeSW7UcntVQQ@mail.gmail.com>
Subject: Re: pthread_create() slowdown with concurrent sched_yield()
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

On Wed, Mar 8, 2017 at 11:48 AM, Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
>
> Thanks for the thorough analysis and especially the testcase!
>
> I applied a fix for this problem and uploaded new developer snapshots
> to https://cygwin.com/snapshots/
>
> Please give them a try.

Hi Corinna -

Thanks for the quick response!

I've confirmed the fix on my system using the latest snapshot:

   2017-03-08 16:47:12 UTC snapshot: 2.7.1(0.307/5/3)  x86_64 and i686

The fix solves the problem for both the test program and the original
application, on both 32 and 64 bit.

Thanks again!
-D

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

