Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!ucsd!swrinde!cs.utexas.edu!execu!sequoia!rpp386!garnett From: garnett@rpp386.cactus.org (John Garnett) Newsgroups: comp.unix.aix Subject: Re: CPU limit Message-ID: <17148@rpp386.cactus.org> Date: 15 Oct 89 22:46:34 GMT References: <834@mit-amt.MEDIA.MIT.EDU> Reply-To: garnett@rpp386.UUCP (John Garnett) Organization: USENET Users' Anonymous Lines: 22 In article <834@mit-amt.MEDIA.MIT.EDU> cchen@mit-amt.MEDIA.MIT.EDU (Curtis Chen) writes: > >I am running a large program on my RT which is not allowed to run to >completion. After running this program for about an hour, this process >is put to sleep. I understand there is a limit on the amount of CPU >that a process is allowed to consume before it is sleep-ed. Is there >any way to increase or eliminate this limit? Also, is there any way >to re-wake sleeping processes? > One hack way to give an old process a larger slice of the CPU time is to have the program periodically fork a new copy of itself. The two copies should check the return value of the fork() call and exit if non-zero. The child process can then continue processing as if the fork never took place. The difference is that the process scheduler will see the child as a new process and will give it more CPU time. -- +------------------------------------+-----------------------------------+ | John Garnett | Base 1.9 | | garnett@rpp386.cactus.org | | | {bigtex|texbell}!rpp386!garnett | "It's almost binary" |