一起答
单选

进程P不断地从外部设备输入数据后通过缓冲区K向进程Q成批(以缓冲区大小为单位)传送,进程Q接到数据并做进一步处理后通过缓冲区T向进程S成批传送,进程R接到数据后将它们打印出来,K和T大小一样。要求打印数据的次序与进程P接收数据的次序一样。

为了在保证结果正确性的前提下尽可能并行工作,需要设置(23)。

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

    • A.clock pulse
    • B.instruction
    • C.memory access
    • D.machine cycle
  2. (73)

    • A.E-time
    • B.I-time
    • C.cycle time
    • D.run time
  3. (72)

    • A.E-time
    • B.I-time
    • C.cycle time
    • D.run time
  4. (69)

    • A.receive
    • B.be received
    • C.receiving
    • D.received
  5. (71)

    • A.address
    • B.value
    • C.content
    • D.register
  6. We know a computer is a machine that processes data(stored in main memory)into information, under control of a stored program. We also know that, internally, a computer is a binary machine; thus the data and the program instruictions must be stored in binary form. Characters are represented in(71). Numbers are stored as binary numbers, with each bit's positional value significant. A computer's main memory is divided into bytes, words or both(depending on the system), and each of these basic storage units is assigned an(72). Using this address, the processor can read or write selected bytes or words.

    The processor consists of a clock, an instruction control unit, an arithmetic and logic unit, and registers.  Once a program is stored in main memory, the processor can begin to execute it. During(73), the instruction control unit fetches an instruction from main memory; during(74), the arithmetic and logic unit executes it. Precisely timed electronic pulses generated by the clock drive this basic(75)

    • A.a binary code
    • B.words
    • C.registers
    • D.positional values
  7. (68)

    • A.full
    • B.empty
    • C.zero
    • D.blank
  8. (67)

    • A.off
    • B.on
    • C.up
    • D.down
  9. The CPU does not have to look(66)all of RAM to find the spot it needs. But RAM only(67)the data temporarily. As soon as you switch the computer(68), all that information disappears  from the RAM. When you switch the computer on again, the RAM is(69), and ready(70)a new program and new data.

    • A.on
    • B.through
    • C.for
    • D.down upon
  10. (66)

    • A.takes
    • B.operates
    • C.erases
    • D.holds