Subject: Re: cygwin implementation of fork() eating all resourses?
From: bertrand marquis <[email-masked]>
To: cygwin <[email-masked]>
Date: 06 Sep 2004 11:58:38 +0200

Hi,

i had the same behaviour under windows xp. It seems that you need to
give back the end to the system sometimes in a while(1) unless it will
take all resources of the system and the child won't do anything.

i had the problem waiting for a network message which wasn't able to be
received as the process took all resources.

The solution for me was only to put a usleep in c code to be shure that
windows take back the hand from time to time.

By the way this doesn't append for me on windows 2000....

i used windows xp sp2 with cygwin 1.5.10-3

Bertrand

Le lun 06/09/2004 à 10:48, Corinna Vinschen a écrit :
> On Sep  6 08:42, Artem Gluhov wrote:
> > After 5 minutes running this script  i got a windwows XP 
> > error: not enough system resourses.
> > 
> > <----------------------
> > #!/bin/bash
> > while (( 1 )); do
> >   ls > /dev/null;
> > done;
> > ---------------------->
> 
> Hmm, I tried it for 15 Minutes but the resource usage was stable.
> Is that with the current Cygwin release?
> 
> 
> 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/