单选

某书店有一个收银员,该书店最多允许n个购书者进入。将收银员和购书者看做不同的进程,其工作流程如图5-3所示。利用PV操作实现该过程,设置信号量S1、S2和Sn,初值分别为0、0和n。则图5-3中a1、a2、b1和b2应分别填入(26)。

  • A.P(S1)、V(S2)、P(Sn)、V(S2)
  • B.P(S2)、V(S)、V(Sn)、P(S2)
  • C.V(S1)、P(S2)、P(S1)、V(S2)
  • D.V(Sn)、P(Sn)、P(S2)、V(S1)
参考答案
您可能感兴趣的试题

ASCII is a 7-bit code used to represent numeric, alphabetic, and special printable characters. It also includes codes for control characters, which are(75).

  • A.printable or displayable
  • B.not printable or displayable
  • C.not printable but displayable
  • D.printable but not displayable

By means of multiple pipeline to carry out multiple processing, this technology is called(71).

  • A.Multiple pipeling
  • B.Superpipeline
  • C.Superscalar
  • D.Very long instruction word

An instruction that uses indrect addressing mustt contain an address of memory where(69).

  • A.data is stored
  • B.a pipeline stall will be executed
  • C.a page fault is addressed
  • D.another address is stored

The sorting method described by the code is called(67).

  • A.Insertion sort
  • B.Selection sort
  • C.Radix sort
  • D.Merge sort
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服