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
Subject: Re: cygwin implementation of fork() eating all resourses?
From: bertrand marquis <bertrand.marquis@sysgo.com>
To: cygwin <cygwin@cygwin.com>
In-Reply-To: <20040906084817.GR17670@cygbert.vinschen.de>
References: <f-9IOQ9IgenIw_M@aport2000.ru> <20040906084817.GR17670@cygbert.vinschen.de>
Content-Type: text/plain; charset=UTF-8
Organization: SYSGO AG
Message-Id: <1094464718.18447.5.camel@bma.sysgo.com>
Mime-Version: 1.0
Date: 06 Sep 2004 11:58:38 +0200
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on donald.sysgo.com
X-Spam-Level: 
X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.63
X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.27.0.6; VDF: 6.27.0.47; host: mailgate.sysgo.de)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i869wjAO022502

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/


