试题与答案

假设一个录像厅有1、2、3三种不同的录像片可由观众选择放映,录像厅的放映规则为:

题型:问答题

题目:

假设一个录像厅有1、2、3三种不同的录像片可由观众选择放映,录像厅的放映规则为:
1)任一时刻最多只能放映一种录像片,正在放映的录像片是自动循环放映的,最后一个观众主动离开时结束当前录像片的放映;
2)选择当前正在放映的录像片的观众可立即进入,允许同时有多位选择同一种录像片的观众同时观看,同时观看的观众数量不受限制;
3)等待观看其他录像片的观众按到达顺序排队,当一种新的录像片开始放映时,所有等待观看该录像片的观众可依次序进入录像厅同时观看。用一个进程代表一个观众,要求:用信号量方法PV操作实现,并给出信号量定义和初始值。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0624/3715aead1cf7371afb3a3fd4277ecd39.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
题型:阅读理解

阅读理解。

     Many teenagers (青少年) feel that the most important people in their lives are their friends. They believe

that their family members don't know them as well as their friends do. In large families, it is quite often for

brothers and sisters to tight with each other and then they can only go to their friends for some ideas.

     It is very important for teenagers to have one good friend or a group of friends. Even when they are not

with their friends, they usually spend a lot of time talking among themselves on the phone. This

communication (交际) is very important in children's growing up, because friends can discuss (讨论)

something. These things are difficult to say to their family members.

     However, parents often try to choose their children friends for them. Some parents may even stop their

children from meeting their good friends. Have you ever thought of the following questions? 

     Who chooses your friends? 

     Do you choose your friends or your friends choose you?

     Have you got a good friend your parents don't like?

     Your answers are welcome.

1. Many teenagers think that ____ can under-stand them better. [ ]

A. friends

B. brothers

C. sisters

D. parents

2. When teenagers have something difficult to say to their parents, they usually ____. [ ]

A. stay alone at home

B. fight with their parents

C. discuss it with their friends

D. go to their brothers and sisters for help

3. The sentence "Your answers are wel-come." means ____. [ ]

A. You are welcome to discuss the questions with us

B. We've got no idea, so your answers are welcome

C. Your answers are always right

D. You can give us all the right answers

4. Which of the following is the writer's attitude (态度)? [ ]

A. Parents should choose friends for their children.

B. Children should choose everything they like.

C. Parents should understand their children better.

D. Teenagers should only go to their friends for help.

查看答案
微信公众账号搜索答案