问题 单项选择题

只有当死锁的4个必要条件具备,才能发生死锁。破坏死锁的4个必要条件之一就可以预防死锁,若规定一个进程请求新资源之前首先释放已占有的资源则是破坏了( )条件。

A.互斥使用

B.部分分配

C.不可剥夺

D.环路等待

答案

参考答案:B

解析:[分析] 死锁的预防可以采取下 * * 种措施:采用资源的静态预分配策略,破坏“部分分配”条件;允许进程剥夺使用其他进程占有的资源,从而破坏“不可剥夺”条件:采用资源有序分配法,破坏“环路”条件。而所谓部分分配是指,进程每次申请它所需要的一部分资源,在申请新的资源的同时,继续占用已分配到的资源。

阅读理解

My name is Toby. I’m eighty-three years old now. I once knew the greatest man in England. William Shakespeare was his name. I first met William near a big field of apple trees in the town named Stratford in October, 1579. He told me he was 15 years old. He was two years older than me. He had a sister, Joan, and two younger brothers, Gilbert and Richard. And the next year he had another brother, Edmund. After William’s parents died, he and his sister lived with his mother’s brother. I became his friend from that day until he died. We met nearly every day. We were friends for thirty years.

I once worked with him in the theatre, through the good times and the bad times. William was good at acting. He could make all kinds of people pleased. By 1592, he became very famous. He was always busy day and night. I don’t know when he slept. He not only acted in plays, but also wrote his own plays. In his whole life, William wrote 37 plays in all. He was the best playwright in England.

He wrote a play about love in 1595. It was Romeo and Juliet. He once used my name, Toby, in his play—Twelfth Night. In this play, Sir Toby Belch was a big fat man, who liked drinking too much and having a good time. Queen Elizabeth the First watched this play on the 6th of January, 1601. She liked it.

William Shakespeare is dead now, of course. He has been dead for more than thirty years. There’s no singing, no dancing, no plays. It isn’t like that in my young days. But I can still think—and remember when William and I were young, we had a good time in London, William and I…

小题1:Toby and William first met in ______.

A.1601

B.1595

C.1592

D.1579小题2:Who was William’s youngest brother?

A.Gilbert

B.Edmund

C.Richard

D.Joan小题3:In the second paragraph, the underlined word “playwright” means “a person who ______”.

A.writes plays

B.performs in plays

C.watches plays

D.works in a theatre小题4:Romeo and Juliet is a play about _______.

A.war

B.peace

C.love

D.friendship

多项选择题