c*******8 发帖数: 56 | 1 For a process, it needs 2 hours to run out the memory, it folks child every
2 minitues, if there are 2 of such process running, how long does it take to
run out memory?
Thanks | s**9 发帖数: 207 | 2 Does a child process also fork every 2 minute? If yes, then 1 hour 58 min.
2*2^x=2^60,
x=59, i.e., the each of the first two processes forks 59 times.
every
to
【在 c*******8 的大作中提到】![](/moin_static193/solenoid/img/up.png) : For a process, it needs 2 hours to run out the memory, it folks child every : 2 minitues, if there are 2 of such process running, how long does it take to : run out memory? : Thanks
| m*****k 发帖数: 731 | 3 why? even the 2 processes do not folk, each of them can only run 1 hour,
then if they folk and the child processes do not consume any mem, each can
folk at the most 30 times I think.
if the children do not folk,
it seems to me like x + (x-2*1) + (x-2*2) + ....x-2*k = 60 while, k+1 = ceil
(x/2)
or am I missing something? | s**9 发帖数: 207 | 4 I interpreted the question as follows (because the original question seems
confusing to me):
For a process, it needs 2 hours to run out the memory IF it folks child
every 2 minutes. If there are 2 of such process running, how long does it
take to run out memory?
ceil
【在 m*****k 的大作中提到】![](/moin_static193/solenoid/img/up.png) : why? even the 2 processes do not folk, each of them can only run 1 hour, : then if they folk and the child processes do not consume any mem, each can : folk at the most 30 times I think. : if the children do not folk, : it seems to me like x + (x-2*1) + (x-2*2) + ....x-2*k = 60 while, k+1 = ceil : (x/2) : or am I missing something?
| y*****i 发帖数: 727 | |
|