试题详情

试题内容

进程PA不断地向管道写数据,进程PB从管道中读数据并加工处理,如下图所示。如果采用PV操作来实现进程PA和进程PB间的管道通信,并且保证这两个进程并发执行的正确性,则至少需要( )。

A、1个信号量,信号量的初值为0
B、2个信号量,信号量的初值分别为0、1
C、3个信号量,信号量的初值分别为0、0、1
D、4个信号量,信号量的初值分别为0、0、1、1

查看答案

软题库参考答案:C(仅供参考)

软题库解析:正在加载....

你可能感兴趣的试题

1题:

在输入输出控制方法中,采用  ( )  可以使得设备与主存间的数据块传送无需CPU 干预。
A、程序控制输入输出
B、中断
C、DMA
D、总线控制

15题:

包含8个成员的开发小组的沟通路径最多有()条。
A.28
B.32
C.56
D.64

54题:VLAN tag在OSI参考模型的()实现。
A.网络层
B.传输层
C.数据链路层
D.物理层
75题:The project workbook is not so much a separate document as it is a structure imposed on the documents that the project will be producing anyway.
All the documents of the project need to be part of this ( ). This includes objectives ,external specifications , interface specifications , technical standards , internal specifications and administrative memoranda(备忘录).
Technical prose is almost immortal. If one examines the genealogy ( Ff ) of a customer manual for a piece of hardware or so
17题:下面是一个软件项目活动图,其中顶点表示项目里程碑,连接顶点的边表示包含的活动,边上的权重表示活动的持续时间(天),则关键路径长度为( ),在该活动图中,活动( )晚 16 天开始不会影响上班。

(1)A、20
B、25
C、27
D、48
(2)A、AC
B、BE
C、FI
D、HJ
8题:

杀毒软件报告发现病毒 Macro.Melissa,由该病毒名称可以推断病毒类型是 (1)  ,这类病毒主要感染目标是  (2)  。
(1)A、文件型
B、引导型
C、目录型
D、宏病毒
(2)A、EXE 或 COM 可执行文件
B、Word 或 Excel 文件
C、DLL 系统文件
D、磁盘引导区