CPU limit
John Garnett
garnett at rpp386.cactus.org
Mon Oct 16 08:46:34 AEST 1989
In article <834 at mit-amt.MEDIA.MIT.EDU> cchen at 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 at rpp386.cactus.org | |
| {bigtex|texbell}!rpp386!garnett | "It's almost binary" |
More information about the Comp.unix.aix
mailing list