一起答
单选

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

  • A.1个信号量,信号量的初值为0
  • B.2个信号量,信号量的初值分别为0、1
  • C.3个信号量,信号量的初值分别为0、0、1
  • D.4个信号量,信号量的初值分别为0、0、1、1
参考答案
查看试卷详情
相关试题
  1. (62)

    • A.painless
    • B.painness
    • C.paperless
    • D.paperness
  2. (60)

    • A.physical
    • B.psycological
    • C.spatial
    • D.spirited
  3. (61)

    • A.update
    • B.updated
    • C.updates
    • D.updating
  4. (57)

    • A.状态图
    • B.用例图
    • C.活动图
    • D.类图
  5. An Intranet is(71)the application of Internet technology within an internal or closed user group.Internets are company(72)and do not have a(73)connection to the Internet.Used properly an Internet is highly effective corporate tool,capable of regularly(74)information to empower the workforce with the information needed to perform. their roles.Used in this way,Internet represent a step towards the(75)office.

    (58)

    • A.simple
    • B.simply
    • C.single
    • D.singly
  6. (59)

    • A.common
    • B.shared
    • C.special
    • D.specific
  7. 在UML提供的图中,可以采用(30)对逻辑数据厍的建模;(31)用于接口、类和协作的行为建模,并强调对象行为的事件顺序;(32)用于系统的功能建模,并强调对象之间的控制流。

    (55)

    • A.用例图
    • B.构件图
    • C.活动图
    • D.类图
  8. (56)

    • A.协作图
    • B.状态图
    • C.序列图
    • D.对象图
  9. (53)

    • A.纠正和修改软件中含有的错误
    • B.因环境发生变化,软件需求做相应的变更
    • C.为扩充功能、提高性能而做的变更
    • D.包括上述各点
  10. (54)

    • A.设法开发出无错误的软件
    • B.增加维护人员的数量
    • C.切实加强维护管理,并在开发过程中采取有利于将来维护的措施
    • D.限制修改的范围