在有N个缓冲区的生产者消费者的问题中,下列叙述中哪些是错误的?producer() { int item; while(TRUE) { item = produce_item(); P(empty); P(mutex); insert_item(item); V(mutex) V(full); } } consumer() { int item; while(TRUE) { P(full); P(mutex); item = remove_item(); V(mutex); V(mutex); consume_item(item); } } A: 信号量empty的初值为N B: 信号量full的初值为0 C: 信号量mutex的初值为0 D: P(full)和P(mutex)两条语句可以颠倒顺序 E: V(mutex)和V(mutex)两条语句可以颠倒顺序
在有N个缓冲区的生产者消费者的问题中,下列叙述中哪些是错误的?producer() { int item; while(TRUE) { item = produce_item(); P(empty); P(mutex); insert_item(item); V(mutex) V(full); } } consumer() { int item; while(TRUE) { P(full); P(mutex); item = remove_item(); V(mutex); V(mutex); consume_item(item); } } A: 信号量empty的初值为N B: 信号量full的初值为0 C: 信号量mutex的初值为0 D: P(full)和P(mutex)两条语句可以颠倒顺序 E: V(mutex)和V(mutex)两条语句可以颠倒顺序
开启第二条生产线的标准() A: 早餐ITEM数≥280/午餐ITEM≥241 B: 早餐ITEM数≥281/午餐ITEM≥240 C: 早餐ITEM数≥241/午餐ITEM≥280 D: 早餐ITEM数≥200/午餐ITEM≥180
开启第二条生产线的标准() A: 早餐ITEM数≥280/午餐ITEM≥241 B: 早餐ITEM数≥281/午餐ITEM≥240 C: 早餐ITEM数≥241/午餐ITEM≥280 D: 早餐ITEM数≥200/午餐ITEM≥180
Which of the following statements is accurate? A: Developed countries consume more energy due to affluence and access. B: Developed countries consume less energy due to poverty. C: Developing countries consume more energy due to increasing wealth. D: Developing countries consume more energy due to increasing affluence and access. E: Developing and developed countries consume the same amount of energy.
Which of the following statements is accurate? A: Developed countries consume more energy due to affluence and access. B: Developed countries consume less energy due to poverty. C: Developing countries consume more energy due to increasing wealth. D: Developing countries consume more energy due to increasing affluence and access. E: Developing and developed countries consume the same amount of energy.
The opportunity cost of an item is ( ). A: the price of that item B: what you give up to get that item C: the time you have to spend on earning enough money to buy that item D: the cost of producing that item
The opportunity cost of an item is ( ). A: the price of that item B: what you give up to get that item C: the time you have to spend on earning enough money to buy that item D: the cost of producing that item
A credit item is an item for which a country must pay. ( )
A credit item is an item for which a country must pay. ( )
What is true about the point-to-point comparison? A: We move back and forth between Item A and Item B at each point. B: We should discuss items in the same order throughout the essay. C: Shifting between Item A and Item B makes the comparison easy to follow. D: It fully discusses Item A at first and then turns to Item B. E: It presents all the information about Item A and then all that about Item B.
What is true about the point-to-point comparison? A: We move back and forth between Item A and Item B at each point. B: We should discuss items in the same order throughout the essay. C: Shifting between Item A and Item B makes the comparison easy to follow. D: It fully discusses Item A at first and then turns to Item B. E: It presents all the information about Item A and then all that about Item B.
If an item is _________ the shopping cart, chances are your item is sold out.
If an item is _________ the shopping cart, chances are your item is sold out.
The production and ___________ (consume) of music is a big part of the economy.
The production and ___________ (consume) of music is a big part of the economy.
As a nation, our (consume) _________________ of junk food is horrifying.
As a nation, our (consume) _________________ of junk food is horrifying.
The most effective complaint can be made by ________. A: showing the faulty item to the manufacturer B: explaining exactly what is wrong with the item C: saying firmly that the item is of poor quality D: asking politely to change the item
The most effective complaint can be made by ________. A: showing the faulty item to the manufacturer B: explaining exactly what is wrong with the item C: saying firmly that the item is of poor quality D: asking politely to change the item