问题 单项选择题

若计算机系统中某时刻有5个进程,其中1个进程的状态为"运行",2个进程的状态为"就绪",2个进程的状态为"阻塞",则该系统中并发的进程数为__(1)__ ;如果系统中的5个进程都要求使用两个互斥资源R,那么该系统不产生死锁的最少资源数R应为__(2)__个。

空白(2)处应选择()

A.5 

B.6 

C.8 

D.9函数g和f的定义如下所示,其中,a是全局变量。若在函数g中以引用调用(callbyreference)方式调用函数f(a),则函数g的返回值为__(1)__,此时变量a的值为__(2)__。

答案

参考答案:B

解析:

填空题
单项选择题

I was a single parent of four small children, working at a low paid job. Money was always tight, but we had a (1) over our heads, food on the table, clothes on our backs, and if not a lot, always (2) . Not knowing we were poor, my kids just thought I was (3) . I’ve always been glad about that.

It was Christmas time, and although there wasn’t (4) for a lot of gifts, we planned to celebrate with a family party. But the big (5) for the kids was the fun of Christmas (6) .

They planned weeks ahead of time, asking (7) what they wanted for Christmas. Fortunately, I had saved MYM120 for (8) to share by all five of us.

The big (9) arrived. I gave each kid a twenty-dollar bill and (10) them to look for gifts of about four dollars each. Then everyone scattered. We had two hours to shop; then we would (11) back at the "Santa’s Workshop"

Driving home, everyone was in high Christmas spirits, (12) my younger daughter, Ginger, who was unusually (13) She had only one small, flat bag with a few candies—fiftycent candies I was so angry, but I didn’t say anything (14) we got home. I called her into my bedroom and closed the door, (15) to be angry again. This is what she told me.

"I was looking (16) thinking of what to buy, and I (17) to read the little cards on the ’Giving Trees’. One was for a little girl, four years old, and all she (18) for Christmas was a doll. So I took the card off the tree and (19) the doll for her. We have so much and she doesn’t have anything. "

I never felt so (20) as I did that day.

4()。

A.angry 

B.rich 

C.patient 

D.bitter