某系统中有一个缓冲区,进程P1不断地生产产品送入缓冲区,进程P2不断地从缓冲区中取产

题型:单项选择题

问题:

某系统中有一个缓冲区,进程P1不断地生产产品送入缓冲区,进程P2不断地从缓冲区中取产品消费。假设该缓存区只能容纳一个产品。进程P1与P2的同步模型如下图所示: 

为此,应设信号量S1的初值为(),信号量S2的初值为()。

信号量S2的初值为()

A.-2

B.-1

C.0

D.1

考点:计算机软件水平考试初级程序员初级程序员2005上半年上午试题
题型:单项选择题

评估COPD严重程度的良好指标是 ()

A.用力肺活量

B.FEV1/FVC

C.FEV1%

D.肺活量

E.功能残气量

题型:单项选择题

请仔细阅读以下资料,然后根据《中华人民共和国海关报关单填制规范》的要求,选出一个正确的答案。

商品编码()。

A.3306. 1010

B.3306

C.1010

D.06. 10

题型:单项选择题

跨文化交际

题型:单项选择题

There are many kinds of friends. Some are always (1) you, but don’t understand you. Some say only a few words to you, but understand you. Many people will step in your life, but only (2) friends leave footprints.
I shall always recall the autumn and the girl with the (3) . She will always bring back the friendship between us. I know she will always be my best friend.
It was the golden season. I could see the yellow leaves (4) with the cool (5) . In such a season, I liked walking alone on the roads covered with leaves, (6) to the sound of them.
Autumn is a (7) season and life is uninteresting. The free days always get me (8) . But one day, the sound of a violin (9) into my ears like a stream flowing in the mountains. I was so surprised that I jumped to see what it was. A young girl, standing in the wind, was (10) in playing her violin.
I had (11) seen her before. The music was so nice that I listened quietly. Lost in the music, I didn’t know that I had been (12) there for so long but my existence did not seem to disturb her.
Leaves were still falling. Every day she played the violin at the comer of the building (13) I went downstairs to watch her performance. I was the only listener. The autumn seemed no longer lonely and life became (14) . (15) we didn’t know each other, I thought we were already good friends. I believe she also loved me.
Autumn was nearly over. One day, when I was listening carefully, the sound suddenly (16) . To my astonishment, the girl came over to me.
"You must like music from the violin." she said.
"Yes. And you play very well. Why did you stop’." I asked.
Suddenly, a (17) expression appeared on her face and I could feel something unusual.
"I came here to see my grandmother, but now I must leave. I once played very badly. It was your listening every day that (18) me. " she said.
"In fact, it was your playing (19) gave me a meaningful autumn," I answered, " Let’s be friends. "
The girl smiled, and so did I. I never heard her play again in my life. I no longer went downstairs to listen to her. Only thick leaves were left behind. But I will always remember the fine figure of the girl. She is like a (20) —so short, so bright, like a shooting star giving off so much light that makes the autumn beautiful.

Ⅱ. 完形填空/Close

A.that

B.which

C.it

D.who

题型:单项选择题

按人类交流的实际功能,可将交流分为()

A.工具性交流和满足需要的交流

B.口头交流与书面交流

C.言语交流和非言语交流

更多题库