Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <430DA017.5000402@vihmapuu.ee>
Date: Thu, 25 Aug 2005 13:40:23 +0300
From: Raul Metsma <raul@vihmapuu.ee>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Problems with Windows threads and cygwin sleep()
References: <20050824185143.76C69A01@data.zone.ee> <Pine.LNX.4.62.0508241458460.26825@ns.pyerotechnics.com> <430D688D.1070205@vihmapuu.ee> <Pine.CYG.4.58.0508251054550.1272@mordor> <430D8FC8.8090906@vihmapuu.ee> <20050825100234.GL17452@calimero.vinschen.de>
In-Reply-To: <20050825100234.GL17452@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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
Maybe is this something related with OS?

Raul Metsma

Corinna Vinschen wrote:
> On Aug 25 12:30, Raul Metsma wrote:
> 
>>Ohh never get this right :(
>>Actually I am more system administrator than programmer
>>
>>Lets try again:
>>http://rtedev.com/~raul/threads/threads.c
>>Compile this program under mingw
>>gcc -o threads.exe threads.c
>>./threads 600
>>
>>now compile
>>http://rtedev.com/~raul/threads/main.c
>>with cygwin
>>and when I execute this, then threads.exe will eat 100% CPU
> 
> 
> Er... well, no, not on my system.  It takes 3 to 5% CPU and that
> doesn't change when starting main.exe.
> 
> 
> Corinna
> 

--
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/

