數據結構 假設有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
本教程定位于FPGA/CPLD的快速入門。以ALTERA公司的芯片和相應的開發軟件為目標載體進行闡述,本教程闡述了ALTERA主要系列芯片PLD芯片的結構和特點以及相應的開發軟件MAX和Plusa和Quartus的使用
上傳時間: 2013-12-03
上傳用戶:lijianyu172
一個不錯的cache,不但能夠實現map的所有操作,而卻具有內嵌的集群支持能力
標簽: cache
上傳時間: 2015-05-12
上傳用戶:從此走出陰霾
delphi工具類,實現了常用的log,
標簽: delphi
上傳時間: 2015-05-14
上傳用戶:lili123
Easy installation Support servers like Tomcat, Resin, WebSphere, WebLogic etc. Multi-languages(English/Chinese...) Support RSS 2.0 RSS syndication Unlimited XML news source Customizable fetch time interval Customizable max entry count Customizable max content size
標簽: Multi-languages installation WebSphere WebLogic
上傳時間: 2014-01-03
上傳用戶:懶龍1988
This sample demonstrates the use of the projection objects ProjCoordSys and GeoCoordSys, and the CoordinateSystem property of the MapLayer object and Map control. This application is intended to teach about the different world projections and there uses.
標簽: the ProjCoordSys demonstrates GeoCoordSys
上傳時間: 2015-05-17
上傳用戶:363186
Perl_CGI六天入門 第一天 1.1 Unix環境 1.2 chmod命令 1.3 定位Perl和sendmail 第二天 2.1 使用Emacs 2.2 Perl簡介 2.3 HTML FORM 第三天 3.1 回應腳本 3.2 腳本解釋 3.3 BODY部分 第四天 4.1 email子過程 4.2 寫文件 4.3 建立log文件 第五天 5.1 留言板CGI代碼 5.2 代碼詳解 5.3 讀取log文件 第六天 6.1 設置口令 6.2 計數器
標簽: Perl_CGI sendmail Emacs chmod
上傳時間: 2015-05-20
上傳用戶:小儒尼尼奧
Here is an implementation of UserCollectionType that returns a fast set. As you are looking below, note how much possibility there is for common subclasses that provide custom set/list/map implementations:
標簽: UserCollectionType implementation looking returns
上傳時間: 2015-05-27
上傳用戶:franktu
改寫的qtopia錄音放音程序,好用。下到板子上要調試一下,如果max time等于0需改源碼
上傳時間: 2015-05-28
上傳用戶:hasan2015
Ever wanted to just type tail -f error_log on Windows?Envious of your Unix friends who can track changes to a file, in real time, as they happen? Well, now with the Objektiv Tail for Win32, you ll be happily monitoring your log files like you ve never done before. What s even better, you can track several files all at the same time with the patented "Multiple Document Interface"TM technology, with each file having its own, fabulous window.
標簽: error_log Envious Windows friends
上傳時間: 2015-05-31
上傳用戶:rocwangdp