Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/