Redian新闻
>
求助 (硬盘光驱都不显示)
avatar
求助 (硬盘光驱都不显示)# Hardware - 计算机硬件
P*b
1
in what case can parent and child process gets into deadlock? if not why?
avatar
m*s
2
离开intel并需要技能及工作证明信办PERM. 以前的经理同意草稿的内容但他说hr似乎
不能开这种信。打过电话觉得他很忙又没有处理过这种事情。有没有人办过这种信能否
分享一下该与何人联系?
多谢多谢
avatar
b*2
3
刚把机器装起来,bios 可以启动没问题了。但是两个硬盘和一个光驱都读不出来。 自
己觉得连线没有问题。求高人指点
avatar
e*m
4

why?
多线程里面貌似会出现死锁,我要先想想怎么解释

【在 P*******b 的大作中提到】
: in what case can parent and child process gets into deadlock? if not why?
avatar
a*d
5
发信给你了。
avatar
d*0
6
计算机管理》存储
avatar
P*b
7
咋解释?

【在 e*****m 的大作中提到】
:
: why?
: 多线程里面貌似会出现死锁,我要先想想怎么解释

avatar
d*e
8
how about this?
int p = 1;
int q = 1;
pid_t c = fork();
if(c == 0)
{
while(p > 0)
;
q--
}
else if (c > 0)
{
while(q > 0)
;
p--;
}
else
{
perror("fork error");
}
else
{
perror("fork error");
}

【在 P*******b 的大作中提到】
: 咋解释?
avatar
P*b
9
还是不太明白啊

【在 d**e 的大作中提到】
: how about this?
: int p = 1;
: int q = 1;
: pid_t c = fork();
: if(c == 0)
: {
: while(p > 0)
: ;
: q--
: }

avatar
I*A
10
os的那点东西全忘光了
这个parent and child process之间
vs
这个child process and child process之间
的deadlock, 有本质区别麽?

【在 P*******b 的大作中提到】
: in what case can parent and child process gets into deadlock? if not why?
avatar
d*e
11
modified a little bit.
when c=0, it's child process
when c>0, it's parent process
so they are mutual waiting, one for q, one for p.
but i don't know if the busy waiting is a good example or not, or i am on
the right track.
correct me if made a mistake.

【在 P*******b 的大作中提到】
: 还是不太明白啊
avatar
d*e
12
我觉得都是等解锁。
呼唤大牛来回答……

【在 I**A 的大作中提到】
: os的那点东西全忘光了
: 这个parent and child process之间
: vs
: 这个child process and child process之间
: 的deadlock, 有本质区别麽?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。