当前位置:首页计算机类软件水平考试高级系统分析师->进程P1、P2、P3、P4和P5的前趋图如下所示:若用PV操

进程P1、P2、P3、P4和P5的前趋图如下所示:

高级系统分析师,历年真题,2020年上半年(上午)《系统分析师》真题

若用PV操作控制这5个进程的同步与互斥的程序如下,那么程序中的空①和空②处应分别为V(S2)和P(S1);空③和空④处应分别为P(S3)和V(S5)V(S6)﹔空⑤和空⑥处应分别为( )。

高级系统分析师,历年真题,2020年上半年(上午)《系统分析师》真题

  • A.P(S5)和P(S7)
  • B.P(S6)和P(S7)
  • C.V(S5)和V(S6)
  • D.V(S6)和P(S7)
查看答案 纠错
答案: A
本题解析:

前趋图中,进程存在明确的前趋和后继关系。前趋进程完成后以V()操作通知后继进程。后继进程开始前需要以P()操作检查前趋进程是否已完成。

也可以直接在图示中进行标注,结点间的→表示二者关系,箭头流出的结点是前趋进程,结束后也就是箭头流出位置,标注为V()操作以通知后继进程;箭头流入的结点是后继进程,开始前也就是箭头流入的位置,标注为P()操作以检查前趋进程。

没有特别注明的情况下,信号量是按顺序进行排列的,如下图:

高级系统分析师,历年真题,2020年上半年(上午)《系统分析师》真题

P1没有前趋,有2个后继,P1执行后需要2个V操作通知后继进程,即①填写V(S2)操作;

P2有1个前趋,有2个后继,P2执行前需要有1个P操作检查前趋,P2执行后需要2个V操作通知后继进程,即②填写P(S1)操作。

P3有2个前趋,有2个后继,P3执行前需要有2个P操作检查前趋,P3执行后需要2个V操作通知后继进程,即③填写P(S3)操作,④填写V(S5)V(S6)操作。

P4有2个前趋,有1个后继,P4执行前需要有2个P操作检查前趋,P4执行后需要1个V操作通知后继进程,即⑤填写P(S5)操作。

P5有2个前趋,没有后继,P5执行前需要有2个P操作检查前趋,即⑥填写P(S7)操作。

更新时间:2023-06-11 23:35

你可能感兴趣的试题

单选题

The Internet of( 1)(IoT) describes physical objects that are embedded with Sensor,processing abilities,softwares,and other technologies that connect with other devices and systems over the ( 2) or other communication and exchange data networks .Over the past few years, IoT has become one of the most important technologies of the ( 3 ) centuryWe can connect objects to the Internet via embedded devices. By means of( 4) computing, the cloud, big data, and mobile technologies, physical things can share and collect data with minimal human intervention. Traditional fields of embedded systems,wireless ( 5) networks (WSNs),control systems,automation, independently and collectively enable IoT.回答5处

  • A.sensor
  • B.searching
  • C.service
  • D.source
查看答案
单选题

The Internet of( 1)(IoT) describes physical objects that are embedded with Sensor,processing abilities,softwares,and other technologies that connect with other devices and systems over the ( 2) or other communication and exchange data networks .Over the past few years, IoT has become one of the most important technologies of the ( 3 ) centuryWe can connect objects to the Internet via embedded devices. By means of( 4) computing, the cloud, big data, and mobile technologies, physical things can share and collect data with minimal human intervention. Traditional fields of embedded systems,wireless ( 5) networks (WSNs),control systems,automation, independently and collectively enable IoT.回答4处

  • A.low-level
  • B.low-cost
  • C.high-cost
  • D.high-performance
查看答案
单选题

The Internet of( 1)(IoT) describes physical objects that are embedded with Sensor,processing abilities,softwares,and other technologies that connect with other devices and systems over the ( 2) or other communication and exchange data networks .Over the past few years, IoT has become one of the most important technologies of the ( 3 ) centuryWe can connect objects to the Internet via embedded devices. By means of( 4) computing, the cloud, big data, and mobile technologies, physical things can share and collect data with minimal human intervention. Traditional fields of embedded systems,wireless ( 5) networks (WSNs),control systems,automation, independently and collectively enable IoT.回答3处

  • A.19th
  • B.20th
  • C.21th
  • D.22th
查看答案
单选题

The Internet of( 1)(IoT) describes physical objects that are embedded with Sensor,processing abilities,softwares,and other technologies that connect with other devices and systems over the ( 2) or other communication and exchange data networks .Over the past few years, IoT has become one of the most important technologies of the ( 3 ) centuryWe can connect objects to the Internet via embedded devices. By means of( 4) computing, the cloud, big data, and mobile technologies, physical things can share and collect data with minimal human intervention. Traditional fields of embedded systems,wireless ( 5) networks (WSNs),control systems,automation, independently and collectively enable IoT.回答2处

  • A.path
  • B.Internet
  • C.route
  • D.switch
查看答案
单选题

The Internet of( 1)(IoT) describes physical objects that are embedded with Sensor,processing abilities,softwares,and other technologies that connect with other devices and systems over the ( 2) or other communication and exchange data networks .Over the past few years, IoT has become one of the most important technologies of the ( 3 ) centuryWe can connect objects to the Internet via embedded devices. By means of( 4) computing, the cloud, big data, and mobile technologies, physical things can share and collect data with minimal human intervention. Traditional fields of embedded systems,wireless ( 5) networks (WSNs),control systems,automation, independently and collectively enable IoT.回答1处

  • A.this
  • B.thing
  • C.think
  • D.things
查看答案
单选题

管理员要检查本地主机TCP/IP协议是否能够正常工作,应使用下面( )命令。

  • A.ping 127.0.0.1
  • B.nslookup 127.0.0.1
  • C.ftp 127.0.0.1
  • D.ipconflg 127.0.0.1
查看答案
单选题

在Windows系统中,可以在“运行”对话框中使用( )打开命令行窗口。

  • A.command
  • B.cmd
  • C.run
  • D.do
查看答案
单选题

在Windows 系统中,要持续ping某主机,应使用( )选项。

  • A.-t
  • B.-a
  • C.-n
  • D.-s
查看答案
单选题

在Linux系统中,管理员在DHCP服务器的配置文件中添加了下面一段代码:subnet 192.168.20.0 netmask 255.255.255.0{range 192 .168 .20 .10 192 .168 .20.50;option domain-name-server ns1 .internal.example.comoption routers 192 .168 .20.254;option broadcast-address 192.168.20.255;default-lease-time 1200;max-lease-time 360000;}当该DHCP服务器启动后,下面分配给客户端的IP地址中,正确的是( ).

  • A.192 .168.20.0
  • B.192.168.20.254 192.168.20.254
  • C.192.168.20.255
  • D.192.168.20.11
查看答案
单选题

在Linux系统中,通常使用( )为用户提供FTP服务,其配置信息存放在(回答此处)目录中。

  • A./etc
  • B./dev
  • C./root
  • D./boot
查看答案