www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/25/02:43:42

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
Message-ID: <430D688D.1070205@vihmapuu.ee>
Date: Thu, 25 Aug 2005 09:43:25 +0300
From: Raul Metsma <raul AT vihmapuu DOT ee>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problems with Windows threads and cygwin sleep()
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>
In-Reply-To: <Pine.LNX.4.62.0508241458460.26825@ns.pyerotechnics.com>
X-IsSubscribed: yes

Sorry no Makefile based project, but in Visual C
http://rtedev.com/~raul/threads/Threads.zip

Now when I execute this program and run some amount threads (like 600)
and then run the "while(1) sleep(1);", which is compiled
under cygwin, then the first program will use 100% CPU.
Actually my CPU usage starts crowing from 200 threads. Seems like
this depends total running threads.

And again when I compile this while loop with winapi Sleep()
then the first program uses 2-3% CPU.

Raul Metsma

Jason Pyeron wrote:
> On Wed, 24 Aug 2005 raul AT vihmapuu DOT ee wrote:
> 
>>
>> how about 6 windows 2003 servers, my laptop with XP and couple more
>> desktops wit windows 2000 and xp
>>
>> We are using rsync, for backing up data.
>> The problem is, software what we are using on servers, starts eating CPU
>> when rsync runs. Thats, why I started debugging rsync and created some
>> test cases, where i fond this problem
> 
> 
> send full test case code and Makefile.
> 
> sorry for the last post, fast fingers.
> 

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