Tuesday, January 15, 2008

assignment #4.

1. The major difference between deadlock, starvation and race is that in deadlock, the problem occurs when the jobs are processed. Starvation, however is the allocation of resource that prevents one job to be executed. Race occurs before the process has been started.
2. Example of Deadlock: When two person are about to buy one product at the time.
Example of Starvation: When one person borrowed a pen from his classmate and his
classmate get his pen back.
Example of Race: When two guys have the same girlfriend.
3. Four necessary condition needed for the deadlock from exercise #2:
if the product is only one.
if the two person needed that one product urgently.
if there's other alternative products available.
if the two person are brand concious and the product happen to be what they like.
4.
5.
a. Deadlock will not happen because there are two traffic lights that control the traffic. But when some motorist don't follow the traffic lights, deadlock can occur because there's only one bridge to drive through.
b. Deadlock can be detected when there will be a huge bumper to bumper to the traffic and there will be accident that will happen.
c. The solution to prevent deadlock is that, the traffic lights should be accurate and motorist should follow it. In order to have a nice driving through the bridge.
6. Based on figure 5.17 answer the following question.a. is this system deadlock?-this is an deadlock because P2 still requesting or waitng for R1 that has already been allocated.

37 comments:

真;ˋ said...

從人生中拿走友誼,猶如從生活中移走陽光........................................

香蕉哥哥 said...

how do u do?

劭傑劭傑 said...

hello~~........................................

張怡伶 said...

thank you for you to make me learn more,thank you∩0∩ ........................................

李惠玲 said...

Virtue dwells not in the tongue but in the heart.......................................................

AronSpriggs0223 said...

以簡單的行為愉悅他人的心靈,勝過千人低頭禱告........................................

ParisH said...

hello~~........................................

長卉LisetteC said...

謝謝您的分享~感恩唷!!..................................................

GusF_Finkbeiner1209 said...

thanks................................................

裕以 said...

您的blog蠻不錯的耶,祝你快樂哦!期待您的更新!........................................

雅伯 said...

亞洲東洋影片go2av 18美女成人網 UT視訊美女交友 A片 - A片-情色網 免費視訊聊天fairy 情人080百分百成人圖片 影音聊天fm358 美女交友artdab 熟女人影片 制服淫窟 嘟嘟情人色網 utshow 視訊聊天 獸皇影片分享區 104av成人音影城 後宮視訊交友 sex520貼片,日本av女優,色美眉,sex,成人 免費線上影片觀看 洪爺護士免費 aa 片 173liveshow 視訊美女 0401成人聊天室 utobe影片 hichannel免費影視 情色視訊影音聊天 人之初貼圖區 plus論壇玩美女人影音秀 85cc情人影城 UT影音視訊聊天室 援交友留言 avonline免費a片 85cc免費av影片 情色免費成人avdvd電影 A片-殺很大 檳榔西施摸奶圖片 成人情色,性愛自拍 亞洲藝人情人視訊網 fdz論壇 情人視訊網 d736 uthome 視訊聊天室 sex888入口情色小遊戲 後宮 視訊聊天 免費視訊辣妹情人視訊網 kk俱樂部wmti 無碼dvd一本道a片 視訊美女 視訊ggo 素人自拍et免費影片下載 hilive-免費視訊 a383girl影音 45avdvd免費影片 免費視訊聊天fm358

柏勳 said...

成功的第一要素是珍惜自己 ............................................................

紫倫妍勳 said...

Wise men learn by other mens mistakes; fools by their own. ............................................................

羅文浩 said...

It is never too late to learn. ............................................................

博行 said...

Where did you purchase this product?.............................................................

文群文群 said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。....................................................................

韻枝 said...

河水永遠是相同的,可是每一剎那又都是新的。....................................................................

靜宸靜宸靜宸 said...

成熟,就是有能力適應生活中的模糊。.................................................................

雅莊王edgd春2蕙婷余惠其 said...

走過路過~不能錯過~哈哈............................................................

宥妃宥妃 said...

感謝予我如此動感的blog!..................................................................

吳婷婷 said...

新的一天 祝你有所成長~~ ..................................................................

tuckerdarrell翁tuckerdarrell怡婷 said...

開心不開心都是一天,祝您能夠笑著面對一切!............................................................

佩璇佩璇 said...

晚上好,很喜歡你的blog哦...............................................................

楊偉馨楊偉馨 said...

辛苦了!祝你愈來愈好!..................................................................

王美妹 said...

你的部落格不錯哦,我來享受一下~~..................................................

蔡靜芳蔡靜芳 said...

開懷幸福的生活,是每個人的夢想~~希望大家都能夠實現!..................................................................

DaniloM_W志竹olff0615 said...

時間就是塑造生命的材料。

家唐銘 said...

Pay somebody back in his own coin. .......... . . . ............. .......... ..........

文王廷 said...

Learn wisdom by the follies of others.............................................................

沈許玉佳貞儀 said...

人不能像動物一樣活著,而應該追求知識和美德............................................................

偉曹琬 said...

I love readding, and thanks for your artical.............................................................

偉曹琬 said...

祝福你人氣不減ˊˇˋ............................................................

阿袁袁袁袁華 said...

Quality is better than quantity...................................................................

怡靜怡靜怡靜怡雯 said...

文章雖然普通,但意義卻很大~~^^~~ ..................................................

翊翊翊翊張瑜翊翊翊 said...

如此動感的blog!!!............................................................

建枫 said...

來給你加油打氣!!!保重!!!............................................................

灏群 said...

謝謝大大分享 我難過了ˋ 3ˊ............................................................