This is the mail archive of the
mailing list for the Cygwin project.
Re: cygwin implementation of fork() eating all resourses?
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
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?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html