一起答
单选

●若有一个仓库,可以存放P1、P2两种产品,但是每次只能存放一种产品,要求:

①w=p1的数量-p2的数量②-i

若用PV操作实现P1和P2产品的入库过程,至少需要 (51) 同步信号量及 (52) 个互斥信号量,其中,同步信号量的初值分别为 (53) ,互斥信号量的初值分别为 (54) 。

(51)

  • A.1    &n
  • bsp;  B.2    
  • C.3    
  • D.4    (52) A.1
  • B.2
  • C.2
  • D.4    (53) A.0
  • B.i,k,0
  • C.i,k
  • D.i-1,k-1    (54) A.1,1,l
  • B.1,1
  • C.1
  • D.i,k
试题出自试卷《2011年程序员考试考前密卷(六)-上午试题》
参考答案
查看试卷详情
相关试题
  1. ●Where box testing of softw

    • are testing is a test for software structure.Which of the following item should noe
    • be in
    • clu
    • ded ing the content of white box? (75) .    (75) A.boundary value analysis
    • B.statement testing
    • C.branch testing
    • D.path testing
  2. ● Softw

    • are maintenance is to do necessary modification,supplenemt,and completeness during software life circle.Among the following vary kinds of maintenance,which one has the maximum workload in a general way?&n
    • bsp;(73) .    (73) A.relevan
    • ce maintenance
    • B.completeness maintenance
    • C.correctness naintenance    
    • D.other kinds of maintenance
  3. ●If file

    • A has the capa
    • bility of 724,the same group's users of file A may do (74) .    (74) A.read A only
    • B.write A    
    • C.execute A    
    • D.non-operation
    • A firewall is a&n
    • bsp;(71) system designed to (72) an organization′s network against threats.    (71) A.operating
    • B.programming    
    • C.security    
    • D.data    (72) A.prevent
    • B.protect
    • C.examine
    • D.exploit
  4. ●In order to improve the perform

    • ance of a network server,you need to select
    • bus or lo
    • cal bus.The appropriate local bus is (69) .    (69) A.VESA
    • B.ISA
    • C.EISA    
    • D.PCI
  5. ●Loc

    • al
    • bus
    • can increase the
    • data throughput.The bus that is most frequently used is (70) .    (70) A.VESA
    • B.PCI
    • C.MCA
    • D.EISA
  6. ●Different qu

    • ality factors of software can
    • be refle
    • cte
    • d upon user's different points of view,through product running,product modification and product transformation.Of the following properties,which one is connected with product running? (67) .    Ⅰ.Correctness   
    • B.Ⅱ
    • C.Ⅰ,Ⅱ
    • D.以上都是
    • A&n
    • bsp;(68) is a feature of the system or ades
    • cription of something the system is capable of
    • doing in order to fulfill the system's purpose.    (68) A.plan
    • B.requirement
    • C.document
    • D.Design
  7. ●In Internet, (66) used

    • as a
    • barrier to prevent the spread of viruses.    (66) A.modom
    • B.firewire    
    • C.firewall    
    • D.netcard
  8. ●下面描述正确的是 (65) 。

    (65)

    • A.数字签名技术用来保证数据在传输过程中的安全性    &n
    • bsp;  B.数字信封技术用来保证数据在传输过程中的完整性    
    • C.电子支票只要第二方认证就可以使用    
    • D.以上都不对