回應訊息圖像 返回主頁圖像 FAQ 圖像

主題: 範例還是有錯

原始訊息
名稱: haha
日期: December 04, 2001 at 22:18:45
主題: 範例還是有錯
意見內容:
助教:
你的新的範例還是有問題
到第三個request時,根據algorithm還是safe
可以參見課本第259頁
他到第五個時還是safe,所以在第三個時不可能是unsafe

本來的spec上面的範例是沒錯的..........


回應者 1
名稱: 習助
日期: December 04, 2001 at 22:42:50
主題: 範例還是有錯
Reply:
課本的範例是說當Time T0時,看到process的情形, Spec上給的是不同的時間出現process request的情形
第三個為什麼會造成unsafe? 先用common sense, 到了第三個process之後, 如果此時 p1 makes its maximum request, that is 7, 就會造成 resource 不足, 用 safety algorithm 去implement 也是得到同樣的結果.

回應者 2
名稱: Todd
日期: December 05, 2001 at 03:12:16
主題: 範例還是有錯
Reply:
助教的說法似乎和課本上說的不符??

課本上的8.5.3.1 Algorithm的
Step2 "Find an i" shch that
a:Finish[i]=false
b:Need[i]<=Work

是從這堆process中抓出一個符合的即可,即使助教舉的例子p1會不符合,依照algorithm,應該再尋找其他符合的process才對,如果都沒有符合的,才跳到Step4



回應者 3
名稱: 習助
日期: December 05, 2001 at 12:22:33
主題: 範例還是有錯
Reply:
我再詳細看了一下, 我搞錯了.
原來的spec沒有錯, 請大家依照原spec上(其實就是課本的例子)的說明去implement.
我搞錯的地方在於:
一個process 提出 request後,
check Request1<=Available,
false==> not grantted, wait. consider next request!
true==>假裝沒問題, apply safety algorithm to find a safe sequence. If found, SAFE, not found, UNSAFE.

回應者 4
名稱: 請問一下
日期: December 05, 2001 at 22:58:16
主題: 範例還是有錯
Reply:
助教:
那這樣子說是不是如果有process無法再這個時間點得到所需要的resourse,他需要wait...在程式裡不需要作implement,直接略過他作下一個request嗎?

回應者 5
名稱: 習助
日期: December 06, 2001 at 12:16:35
主題: 範例還是有錯
Reply:
wait的process在所要求的resource足夠時要優先考慮(以FCFS來作即可), 意即若有process完成其所有request, 所釋放resource若足夠, 就得serve 此 waiting process.

回應者 6
名稱: Susan
日期: December 06, 2001 at 18:05:10
主題: 範例還是有錯
Reply:
助教:
可是不是沒有process會release所allocate的資源嗎?
為什麼wait的process可以得到不足的資源?

回應者 7
名稱: 習助
日期: December 06, 2001 at 18:35:01
主題: 範例還是有錯
Reply:
只要process完成了他所 demand的max resources就表示這個process已經無用武之地, 自然就得乖乖地release allocated resources.

回應者 8
名稱: Sasan
日期: December 07, 2001 at 12:53:38
主題: 範例還是有錯
Reply:
助教

回應者 9
名稱: Susan
日期: December 07, 2001 at 12:55:01
主題: 範例還是有錯
Reply:
助教:
請問如果在檢查完一個state是否為safe之後,有process可以release他所allocate的所有資源,那是要先處理wait queue裡面的process還是要先處理下一個進入的request?

回應者 10
名稱: Susan
日期: December 07, 2001 at 12:55:02
主題: 範例還是有錯
Reply:
助教:
請問如果在檢查完一個state是否為safe之後,有process可以release他所allocate的所有資源,那是要先處理wait queue裡面的process還是要先處理下一個進入的request?

回應者 11
名稱: 習助
日期: December 07, 2001 at 12:58:59
主題: 範例還是有錯
Reply:
waiting process
p.s post文章後請reload.

回應者 12
名稱: 小小問題
日期: December 08, 2001 at 16:41:40
主題: 範例還是有錯
Reply:
如果request5被抓去waiting, 等到某個process release後 假設是request10, request5 開始可以執行了 但卻造成 unsafe, 那麼最後的答案是~~~

5 還是 10


回應者 13
名稱: 習助
日期: December 10, 2001 at 13:02:28
主題: 範例還是有錯
Reply:
5

回應者 14
名稱: 習助
日期: December 10, 2001 at 16:54:54
主題: 範例還是有錯
Reply:
你們助教這次作業要大放送.
這次的unsafe condition 有兩種情形, 一種是 implement safety algorithm 後發現 unsafe, 另一種就是只要 Request(i) > Available 直接output unsafe, 不需要考慮wait情形.

回應者 15
名稱: John Vanilla
日期: June 04, 2004 at 16:33:30
網頁: casino online
主題: online casino
Reply:
Great sport channel... online casino it"s awesome be the poker casino online the roulette everything Internet Casino is just bethedealer fantastic Casino i"m crazy online Poker we have won so plus money casino-online that a great chance online-casino i would google Google about winning


回應者 16
名稱: online casino guy
日期: June 17, 2004 at 00:26:36
主題: online casino
Reply:
Having been take to the page casino, i was forced to play some casino games. Nevertheless, it was a virtual-gambling experience to me and my casino players. this casino site is really great.

回應者 17
名稱: Jhon Doteone
日期: July 16, 2004 at 02:40:40
網頁: Buy Viagra Online
主題: Buy Viagra Online
Reply:
Buy Viagra Online viagra online Cheapest Viagra Best viagra onlineCheap Viagra Pills viagra The Best On The Internet Check Us In Google For Free !!!buy cheap viagra Be a good lover buy VIAGRA on line NEW ! order viagra Order Viagra Today GoogleOnline Viagra It"s Easy !

回應者 18
名稱: http://www.viagra-prescription.info
日期: July 23, 2004 at 05:43:34
主題:
Reply:
Online prescription medications sale.

回應者 19
名稱: Online University Advisor
日期: September 03, 2004 at 20:12:22
網頁: Online University
主題: Online University
Reply:
Hello, as i understand, you might have interest in online university information.
I can offer you the most professional online education and our online universities provide the most accredited online degrees on the internet.
Getting information about your online degree is only one click away.
info about university of phoenix, AIU online, Devry college and more.
(sorry if that post is not relevant :-)


回應者 20
名稱: Green Card Reg.
日期: September 03, 2004 at 21:38:49
網頁: Green Card
主題: Green Card
Reply:
USA government announces that green card applications can be registered through the internet.
Every Year, the green card lottery grants 50,000 visas to people all around the world. All 50,000 Winners are issued a USA GREEN CARD authorizing them and their families to live and work in the United States!


回應者 21
名稱: Mortgage refinance guide
日期: September 05, 2004 at 05:29:30
網頁: Mortgage
主題: Mortgage
Reply:
Receive information about the LOWEST mortgage rates possible! In 20 seconds-to-fill form you will be able to refinance mortgage even with Less-Than-Perfect-Credit.
Mortgages can be easily approved. We refinance mortgages for everyone.


回應者 22
名稱: Forex Trader
日期: September 05, 2004 at 07:22:07
網頁: Forex
主題: Forex
Reply:
We offer online foreign exchange trading service. Try our award-winning forex trading software, and discover why we are one of the leaders in online forex and options trading.


回應者 23
名稱: Online poker
日期: September 12, 2004 at 07:04:30
網頁: Online poker
主題: online poker
Reply:
Hello, here some informatino that might interest you:

- Mortgage - http://www.lowest-rates-mortgages.com/
- Mortgages - http://www.lowest-rates-mortgages.com/mortgages
- Refinance mortgage - http://www.lowest-rates-mortgages.com/refinancemortgage
- Refinance mortgages - http://www.lowest-rates-mortgages.com/refinancemortgages
- Online university - http://www.Choose-online-university.com/
- Online degree - http://www.Choose-online-university.com/onlinedegree
- Online universities - http://www.Choose-online-university.com/onlineuniversities
- Online degrees - http://www.Choose-online-university.com/onlinedegrees
- Online education - http://www.Choose-online-university.com/onlineeducation
- AIUonline - http://www.Choose-online-university.com/AIUonline
- Devry College - http://www.Choose-online-university.com/devrycollege.
- University of Phoenix - http://www.Choose-online-university.com/UniversityofPhoenix
- Foreign exchange - http://www.forex-online-now.com/foreignexchange
- Forex - http://www.forex-online-now.com/
- forex trading - http://www.forex-online-now.com/forextrading
- Green Card - http://www.apply-to-green-card.org
- Cigarettes - http://www.CHEAPEST-DUTYFREE-CIGARETTES.COM/
- Cigarette - http://www.CHEAPEST-DUTYFREE-CIGARETTES.COM/cigarette
- Cheap cigarettes - http://www.CHEAPEST-DUTYFREE-CIGARETTES.COM/cheapcigarettes
- Spyware - http://www.SPYWARE-REMOVAL-ONLINE.COM/
- Spyware removal - http://www.SPYWARE-REMOVAL-ONLINE.COM/spywareremoval
- Web hosting - http://www.EASY-HOSTING-SERVICES.COM/
- Hosting - http://www.EASY-HOSTING-SERVICES.COM/hosting
- Domain hosting - http://www.EASY-HOSTING-SERVICES.COM/domainhosting
- site hosting - http://www.EASY-HOSTING-SERVICES.COM/sitehosting
- Online dating - http://www.MY-DATING-PORTAL.COM/
- Dating - http://www.MY-DATING-PORTAL.COM/dating
- Dating service - http://www.MY-DATING-PORTAL.COM/datingservice
- Poker - http://www.WORLD-BEST-POKER-ONLINE.COM/
- Online poker - http://www.WORLD-BEST-POKER-ONLINE.COM/onlinepoker
- Poker room - http://www.WORLD-BEST-POKER-ONLINE.COM/pokerroom

回應現在的訊息:

   名稱: 
 E-Mail: 
   主題: 
意見內容:
         

 
  Homepage URL (*可不寫): 
Homepage Title (*可不寫): 
     Image URL (*可不寫):