皮皮学,免费搜题
登录
搜题
【单选题】
进行P0和P1的共享变量定义及其初值为( ) boolean flag[2]; int turn=0; flag[0]=faulse;flag[1]=faulse; 若进行P0和P1访问临界资源的类C代码实现如下: Void p0()// 进程p0Void p1()// 进程p1 {while(TURE)}{while(TURE)} Flag[0]=TURE;ture=1Flag[1]=TURE; ture=1 While(flag[1](turn==1)) While (flag[0](turn==0)) 临界区: Flag[0]=FALSE;Flag[1]=FALSE; } } } } 则并发执行进程P0和P1时产生的情况是:
A.
不能保证进程互斥进入临界区,会出现“饥饿”现象
B.
不能保证进程互斥进入临界区,不会出现“饥饿”现象
C.
能保证进程互斥进入临界区,会出现“饥饿”现象
D.
能保证进程互斥进入临界区,不会出现“饥饿”现象
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】电能是现代工业生产的主要能源和动力。
A.
正确
B.
错误
【单选题】下列四个试剂,不跟CH 3 CH 2 COCH 2 CH 3 反应的是:
A.
(A) RMgX
B.
(B) NaHSO 3 饱和水溶液
C.
(C) PCl 5
D.
(D) LiAlH 4
【简答题】While still in its early stages, welfare reform has already been judged a great success in many states ?a at least in getting people off welfare. It's estimated that more than 2 million people have le...
【简答题】是现代工业生产的主要能源和动力。
【单选题】Economy, one of the principles of success in the details of housekeeping, consists not alone 【C1】______ making advantageous use of fresh material, but in carefully【C2】______and utilizing the 'left-ove...
A.
of
B.
with
C.
by
D.
in
【简答题】6) The technicians’ support is an important in the success of our research project.
【简答题】In order to be a success in the American business world, you must “get along” with people. You must learn to conduct yourself in such a way _1_ you earn the affection and respect of others._2_ we have...
【简答题】Placebos do not always 1 . The success of this treatment seems to rest a lot 2 the relationship 3 the patient and the doctor. If the patient has a lot of 4 in the doctor and if the doctor really wants...
【判断题】6 The success in the government arena requires a lot of adjustments. ( )
A.
正确
B.
错误
【单选题】当电源关闭后,下列关于存储器的说法中,正确的是______。
A.
存储在RAM中的数据不会丢失
B.
存储在ROM中的数据不会丢失
C.
存储在U盘中的数据会全部丢失
D.
存储在硬盘中的数据会丢失
相关题目: