某计算机系统中互斥资源R的可用数为8,系统中有3个进程P1、P2和P3竞争R,且每个进程都需要i个R,该系统可能会发生死锁的最小i值为( )。
- A.1
- B.2
- C.3
- D.4
正确答案及解析
正确答案
解析
本题对于R资源可用数为8,分配到3个进程中,为了让最后的i值最小,所以每个进程尽量平均分配,可以得到3、3、2的分配情况,此时如果假设i的取值为3,则必定不会形成死锁。当i>3时系统会形成死锁,此时取整,即最小i值为4。
你可能感兴趣的试题
Corporate decision makers require access to information from multiple such sources. Seting up queries on individual sources is both cumbersome and( 71 ). Moreover, the sources of data may store only current data, whereas decision makers may need access to( 72 )dataas well. A data warehouse is a repository(or archive)of information gathered from multiple sources, stored under a unified schema, at a( 73 )site. Once gathered, the data are stored for a long time, permitting access to historical data. Thus, data warehouses provide the user with a single consolidated( 74 )to data, making decision-support queries easier to write. Moreover, by accessing information for decision support from a data warehouse, the decision maker ensures that online transaction- processing systems are not( 75 )by the decision-supportworkdoad.
-
- A.used
- B.affected
- C.supported
- D.exploited
- 查看答案
Corporate decision makers require access to information from multiple such sources. Seting up queries on individual sources is both cumbersome and( 71 ). Moreover, the sources of data may store only current data, whereas decision makers may need access to( 72 )dataas well. A data warehouse is a repository(or archive)of information gathered from multiple sources, stored under a unified schema, at a( 73 )site. Once gathered, the data are stored for a long time, permitting access to historical data. Thus, data warehouses provide the user with a single consolidated( 74 )to data, making decision-support queries easier to write. Moreover, by accessing information for decision support from a data warehouse, the decision maker ensures that online transaction- processing systems are not( 75 )by the decision-supportworkdoad.
-
- A.table
- B.row
- C.system
- D.interface
- 查看答案
Corporate decision makers require access to information from multiple such sources. Seting up queries on individual sources is both cumbersome and( 71 ). Moreover, the sources of data may store only current data, whereas decision makers may need access to( 72 )dataas well. A data warehouse is a repository(or archive)of information gathered from multiple sources, stored under a unified schema, at a( 73 )site. Once gathered, the data are stored for a long time, permitting access to historical data. Thus, data warehouses provide the user with a single consolidated( 74 )to data, making decision-support queries easier to write. Moreover, by accessing information for decision support from a data warehouse, the decision maker ensures that online transaction- processing systems are not( 75 )by the decision-supportworkdoad.
-
- A.distributed
- B.single
- C.many
- D.data
- 查看答案
Corporate decision makers require access to information from multiple such sources. Seting up queries on individual sources is both cumbersome and( 71 ). Moreover, the sources of data may store only current data, whereas decision makers may need access to( 72 )dataas well. A data warehouse is a repository(or archive)of information gathered from multiple sources, stored under a unified schema, at a( 73 )site. Once gathered, the data are stored for a long time, permitting access to historical data. Thus, data warehouses provide the user with a single consolidated( 74 )to data, making decision-support queries easier to write. Moreover, by accessing information for decision support from a data warehouse, the decision maker ensures that online transaction- processing systems are not( 75 )by the decision-supportworkdoad.
-
- A.many
- B.past
- C.big
- D.much
- 查看答案
Corporate decision makers require access to information from multiple such sources. Seting up queries on individual sources is both cumbersome and( 71 ). Moreover, the sources of data may store only current data, whereas decision makers may need access to( 72 )dataas well. A data warehouse is a repository(or archive)of information gathered from multiple sources, stored under a unified schema, at a( 73 )site. Once gathered, the data are stored for a long time, permitting access to historical data. Thus, data warehouses provide the user with a single consolidated( 74 )to data, making decision-support queries easier to write. Moreover, by accessing information for decision support from a data warehouse, the decision maker ensures that online transaction- processing systems are not( 75 )by the decision-supportworkdoad.
-
- A.inefficient
- B.efficient
- C.easy
- D.uneasiness
- 查看答案