呵呵,交大網絡作業;可靠的數據傳輸,go back to N;呵呵,錯過了就可惜了
標簽:
上傳時間: 2015-04-19
上傳用戶:zhuoying119
.數據結構 假設有M個進程N類資源,則有如下數據結構: MAX[M*N] M個進程對N類資源的最大需求量 AVAILABLE[N] 系統可用資源數 ALLOCATION[M*N] M個進程已經得到N類資源的資源量 NEED[M*N] M個進程還需要N類資源的資源量 2.銀行家算法 設進程I提出請求Request[N],則銀行家算法按如下規則進行判斷。 (1)如果Request[N]<=NEED[I,N],則轉(2);否則,出錯。 (2)如果Request[N]<=AVAILABLE,則轉(3);否則,出錯。 (3)系統試探分配資源,修改相關數據: AVAILABLE=AVAILABLE-REQUEST ALLOCATION=ALLOCATION+REQUEST NEED=NEED-REQUEST (4)系統執行安全性檢查,如安全,則分配成立;否則試探險性分配作廢,系統恢復原狀,進程等待。 3.安全性檢查 (1)設置兩個工作向量WORK=AVAILABLE;FINISH[M]=FALSE (2)從進程集合中找到一個滿足下述條件的進程, FINISH[i]=FALSE NEED<=WORK 如找到,執行(3);否則,執行(4) (3)設進程獲得資源,可順利執行,直至完成,從而釋放資源。 WORK=WORK+ALLOCATION FINISH=TRUE go TO 2 (4)如所有的進程Finish[M]=true,則表示安全;否則系統不安全。
上傳時間: 2014-01-05
上傳用戶:moshushi0009
數據結構 假設有M個進程N類資源,則有如下數據結構: MAX[M*N] M個進程對N類資源的最大需求量 AVAILABLE[N] 系統可用資源數 ALLOCATION[M*N] M個進程已經得到N類資源的資源量 NEED[M*N] M個進程還需要N類資源的資源量 2.銀行家算法 設進程I提出請求Request[N],則銀行家算法按如下規則進行判斷。 (1)如果Request[N]<=NEED[I,N],則轉(2);否則,出錯。 (2)如果Request[N]<=AVAILABLE,則轉(3);否則,出錯。 (3)系統試探分配資源,修改相關數據: AVAILABLE=AVAILABLE-REQUEST ALLOCATION=ALLOCATION+REQUEST NEED=NEED-REQUEST (4)系統執行安全性檢查,如安全,則分配成立;否則試探險性分配作廢,系統恢復原狀,進程等待。 3.安全性檢查 (1)設置兩個工作向量WORK=AVAILABLE;FINISH[M]=FALSE (2)從進程集合中找到一個滿足下述條件的進程, FINISH[i]=FALSE NEED<=WORK 如找到,執行(3);否則,執行(4) (3)設進程獲得資源,可順利執行,直至完成,從而釋放資源。 WORK=WORK+ALLOCATION FINISH=TRUE go TO 2 (4)如所有的進程Finish[M]=true,則表示安全;否則系統不安全。
上傳時間: 2013-12-24
上傳用戶:alan-ee
This example program shows how to configure and use the A/D Converter of the following microcontroller: STMicroelectronics ST10F166 After configuring the A/D, the program reads the A/D result and outputs the converted value using the serial port. To run this program... Build the project (Project Menu, Build Target) Start the debugger (Debug Menu, Start/Stop Debug Session) View the Serial Window (View Menu, Serial Window #1) View the A/D converter peripheral (Peripheral Menu, A/D Converter) Run the program (Debug Menu, go) A debug script (debug.ini) creates buttons that set different analog values in A/D channels. As the program runs, you will see the A/D input and output change. Other buttons create signals that generate sine wave or sawtooth patterns as analog inputs. µ Vision3 users may enable the built-in Logic Analyzer to view, measure and compare these input signals graphically.
標簽: microcontroll Converter configure following
上傳時間: 2014-12-01
上傳用戶:獨孤求源
These are all the utilities you need to generate MPEG-I movies on a UNIX box with full motion video and stereo sound. For more information on this unusual application of Linux, look in the docs directory or go to www.freeyellow.com/members4/heroine
標簽: utilities generate MPEG-I movies
上傳時間: 2013-12-18
上傳用戶:onewq
This comprehensive clear screen tutorial using Java native interface. Teaches you from A-Z how you go about clearing the windows dos console.
標簽: comprehensive interface you tutorial
上傳時間: 2015-05-28
上傳用戶:qlpqlq
學生成績管理查詢系統 v2.8 beta5 完全內核,界面的改變,增加學生統計、 院系、班級等管理功能 1.添加單個成績 2.批量添加成績 3.通過搜索并修改與刪除 4.直接修改 5.可以批量刪除 6.可以直接go到達你想到達的頁 7.分頁顯示 8.代碼精簡 9.整合部分重復代碼 后臺地址:login.asp 管理用戶:admin 管理密碼:admin
上傳時間: 2014-05-24
上傳用戶:cainaifa
所有的圖片,復雜的框架都沒修飾,所有的程序代碼精簡。絕對精簡版:) 前臺index.asp可輸入學號就可以查詢該學生所有課程的成績 后臺login.asp 管理用戶:admin 管理密碼:admin 功能: 1.添加單個成績 2.批量添加成績 3.通過搜索并修改與刪除 4.直接修改 5.可以批量刪除 6.可以直接go到達你想到達的頁 7.分頁顯示 8.代碼精簡 9.整合部分重復代碼
標簽:
上傳時間: 2015-06-21
上傳用戶:330402686
調試通過的可以直接在NAND Flash 上啟動的u-boot-1.1.6 (開發板:優龍st2410) 包括:cs8900網卡驅動,NAND Flash 燒寫,NAND 環境變量保存(saveenv), bootm, go, 網絡下載tftpboot
上傳時間: 2015-09-08
上傳用戶:xinzhch
開發平臺為Keil Cx51,C51單片機串行口中斷服務程序,僅需做簡單調用即可完成串口輸入輸出的處理 //編程:聶小猛。該資料來自“51單片機世界”http://go.163.com/~dz2000。
上傳時間: 2014-01-17
上傳用戶:plsee