由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请教一道题
相关主题
请教一道题周三面试,周五招聘公司讨论,招人老板回的信
An op question急问:电面第一句话怎么说好?
一个fork()问题面试时怎么称呼对方?
这种情况应该pip还是……上周second round 求祝福
申请H1B,如何说服公司走premium process呢?hiring interns for verification
一些找工作面试的资料, 可以随便下载求教Google工资问题
面经兼求祝福How long do you wait until the recruiter gets back to you?
Zynga is hiring -- RP post这个是说我年底的时候再去试试么?
相关话题的讨论汇总
话题: process话题: run话题: memory话题: folk话题: out
进入JobHunting版参与讨论
1 (共1页)
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 的大作中提到】
: 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 的大作中提到】
: 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
5
10min
1 (共1页)
进入JobHunting版参与讨论
相关主题
这个是说我年底的时候再去试试么?申请H1B,如何说服公司走premium process呢?
刚技术电面完,求on-site中一些找工作面试的资料, 可以随便下载
有没有SalesForce developer面经兼求祝福
友人公司招人Zynga is hiring -- RP post
请教一道题周三面试,周五招聘公司讨论,招人老板回的信
An op question急问:电面第一句话怎么说好?
一个fork()问题面试时怎么称呼对方?
这种情况应该pip还是……上周second round 求祝福
相关话题的讨论汇总
话题: process话题: run话题: memory话题: folk话题: out