delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/25/07:58:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authenticated: #14308112
Date: Thu, 25 Aug 2005 14:59:28 +0300
From: Pavel Tsekov <ptsekov AT gmx DOT net>
X-X-Sender: ptsekov AT mordor
To: cygwin AT cygwin DOT com
Subject: Re: Problems with Windows threads and cygwin sleep()
In-Reply-To: <20050825115019.GP17452@calimero.vinschen.de>
Message-ID: <Pine.CYG.4.58.0508251456520.2676@mordor>
References: <20050824185143 DOT 76C69A01 AT data DOT zone DOT ee> <Pine DOT LNX DOT 4 DOT 62 DOT 0508241458460 DOT 26825 AT ns DOT pyerotechnics DOT com> <430D688D DOT 1070205 AT vihmapuu DOT ee> <Pine DOT CYG DOT 4 DOT 58 DOT 0508251054550 DOT 1272 AT mordor> <430D8FC8 DOT 8090906 AT vihmapuu DOT ee> <20050825100234 DOT GL17452 AT calimero DOT vinschen DOT de> <430DA017 DOT 5000402 AT vihmapuu DOT ee> <20050825115019 DOT GP17452 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-Y-GMX-Trusted: 0
X-IsSubscribed: yes

Hello,

On Thu, 25 Aug 2005, Corinna Vinschen wrote:

> On Aug 25 13:40, Raul Metsma wrote:
> > Seems this is something related CPU-s or total Windows thread count
> > I tested it on Windwos 2003, where are 2x2,4GHz Intel Xeon
> > There occurs this issue on 800 threads
>
> You're right, when raising the number of threads, I see this test
> gradually taking more CPU time the more threads it has, nearly 95%
> with 800 threads.
>
> As long as one starts it from a cmd shell and no Cygwin application is
> present, the CPU keeps low under 5%.  As soon as a Cygwin process is
> present...

Here when the app is compiled with -mno-cygwin it takes 100% cpu when it
allocates 400+ threads - both from Windows Command Prompt and Cygwin bash.
After all the testcase consist almost entirely of Win32 calls.



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

- Raw text -


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