diff options
| author | Anton S <lfxgroove@zoho.com> | 2016-05-04 15:14:36 +0200 |
|---|---|---|
| committer | Anton S <lfxgroove@zoho.com> | 2016-05-04 15:14:36 +0200 |
| commit | 2399a4de4157f46340b283660da3ff8ea4c9e2bc (patch) | |
| tree | 89629f508d185b3b146f311a4700975b3f4ebdac /src/examples | |
| parent | 5fec8c0cea7a42b7e07b07db61caa05003cd0687 (diff) | |
| download | pintos-rs-2399a4de4157f46340b283660da3ff8ea4c9e2bc.tar.gz | |
Change the comment for longrun_nowait to be more instructive as to what one should expect when running it
Diffstat (limited to 'src/examples')
| -rw-r--r-- | src/examples/longrun_nowait.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/examples/longrun_nowait.c b/src/examples/longrun_nowait.c index 4c78b2e..36f712e 100644 --- a/src/examples/longrun_nowait.c +++ b/src/examples/longrun_nowait.c @@ -4,24 +4,30 @@ Start a lot of processes and let them finish to test if we eventually run out of process slots. - + 'longrun_nowait 10 50' - + Will call generic_parent to start 10 children 50 times (500 processes). One slot will be used by longrun_nowait itself. 50 slots will be used by generic_parent (they must be kept so long as - longrun_nowait still execute, since it may want to wait for any of + longrun_nowait still executes, since it may want to wait for any of them). All other slots needed should also be freed as soon as both generic_parent and it's set of children exits. - + To run the test effectively, if you have a limit on number of - processes, lower that limit to 61 processes and run this test like - + processes, make sure that you have at least 100 slots in your + process table and run this test like + 'longrun_nowait 10 50' - + + You should expect the process list to contain both dummy and + generic_parent. The ratio of dummy to generic_parent processes + should be in favor of generic_parent at most times. Otherwise + something is probably not as it should be. + Note that some pintos tests requires at least 16 simultaneous processes to work, so be sure to increase the limit before running - pintos tests. + pintos tests. */ #include <syscall.h> |
