题目详情

假设系统中有n个进程共享3台扫描仪,并采用PV操作实现进程同步与互斥。若系统信号量S的当前值为-1,进程P1、P2又分别执行了1次P(S)操作,那么信号量S的值应为(  )。

  • A.3
  • B.-3
  • C.1
  • D.-1

正确答案及解析

正确答案
B
解析

当有进程运行时,其他进程访问信号量,信号量就会减1。S=-1-2。

包含此试题的试卷

你可能感兴趣的试题

单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.state
  • B.constant
  • C.instance
  • D.member
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.actor
  • B.instance
  • C.component
  • D.class
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.methods
  • B.interactions
  • C.interfaces
  • D.behaviors
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.systems maintenance process
  • B.systems implementation process
  • C.systems design process
  • D.systems testing process
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.database models
  • B.object models
  • C.event models
  • D.static system models
查看答案

相关题库更多 +