CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - fifo lru random
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - fifo lru random - List
[
Other
]
cun_chu_guan_li
DL : 0
1) 通过随机数产生一个指令序列,共320条指令 2) 将指令序列变换成页地址流 3) 计算并输出下述各种算法在不同内存容量下的命中率。 ① 先进先出的算法(FIFO); ② 最近最少使用算法(LRU); ③ 最佳淘汰算法(OPT);-1) by a random number to generate a sequence of instructions, a total of 320 instructions) instruction sequence is converted into the page address stream 3) Calculate and output the following various algorithms hit rate under different memory capacity. ① The algorithm of the first-in, first-out (FIFO) ② The least recently used algorithm (LRU) ③ The best out algorithm (OPT)
Date
: 2025-12-14
Size
: 2kb
User
:
高雯
[
Other
]
PageReplacement
DL : 0
用c语言实现的页面置换算法,具体包括最佳替换算法,随机替换算法,FIFO算法,LRU算法和Clock算法。引用串的生成是尽量模拟真实的程序局部性而设计的。-a C program implements page replacement algorithm:include optimal algorithm, random algorithm, FIFO algorithm, LRU algorithm and Clock algorithm. The generation of reference string is based on the spatial locality of program.
Date
: 2025-12-14
Size
: 330kb
User
:
廖宇豪
[
Other
]
page-replacement
DL : 0
操作系统: 页面置换模拟程序设计 2,实现的功能:实现了页面置换模拟程序设计中的FIFO算法。 3,说明:由于产生页面的访问序列非常耗时,所以此程序产生的页面访问序列是使用产生0--319个数,然后打乱,形成类似的随机指令和页面访问序列。 4,BUG:由于其他的(诸如OPT,LRU,LFU)的算法只是页面的置换方式不同,故只写出了FIFO算法,其他的类似。 -Operating System: page replacement simulation program design 2, functions: to achieve a page replacement simulation program design FIFO algorithm. 3 Note: Due to generate page access sequence is very time-consuming, so the page access sequence is generated using this procedure produces a 0- 319 number, and then disrupted the formation of a similar sequence of random instructions and page views. 4, BUG: Because the other (such as OPT, LRU, LFU) algorithm is just a different way of replacement pages, so only write FIFO algorithm, the other is similar.
Date
: 2025-12-14
Size
: 293kb
User
:
天蓝
[
Other
]
page
DL : 0
模拟操作系统采用OPT、FIFO和LRU算法进行页面置换的过程。 设程序中地址范围为0到32767,采用随机数生成256个指令地址,满足50 的地址是顺序执行,25 向前跳,25 向后跳。为满足上述条件,可采取下列方法: 设d0 10000,第 n个指令地址为dn,第 n+1 个指令地址为dn+1 ,n的取值范围为0 到255。每次生成一个 1 到1024范围内的随机数a,如果a落在1 到512 范围内,则dn+1 dn+1。如果a落在513 到768范围内,则设置dn+1 为1 到dn范围内一个随机数。如果a落在769 到1024范围内,则设置dn+1 为dn到32767范围内一个随机数。 页面大小的取值范围为1K,2K,4K,8K,16K 。按照页面大小将指令地址转化为页号。对于相邻相同的页号,合并为一个。 分配给程序的内存块数取值范围为1 块,2 块,直到程序的页面数。 6、 分别采用OPT、FIFO 和LRU算法对页号序列进行调度,计算出对应的缺页中断率。 打印出页面大小、分配给程序的内存块数、算法名、对应的缺页中断率。 操作系统页面置换算法通过c++实现 -Simulation operating system uses OPT, FIFO and LRU page replacement algorithm process. Let the program addresses the range of 0 to 32767, using a random number generator 256 instruction address, the address is to meet 50 of the order, a 25 jump forward, jump back 25 . To meet the above conditions, you can take the following methods: Let d0 10000, n-th instruction address is dn, the first n+1 instruction address dn+1, n the range of 0-255. 1-1024 each generate a random number within a range, if a falls within the range of 1-512, the dn+1 dn+1. If a falls within the range of 513-768, set dn+1 within the range of 1 to dn a random number. If a falls within the range of 769-1024, is set to dn dn+1 to a random number within the range of 32767. Page size in the range of 1K, 2K, 4K, 8K, 16K. Follow the page size of the instruction address into the page number. For the same adjacent page numbers, into one. Memory blocks allocated to the program in the range of 1, 2, until the page number
Date
: 2025-12-14
Size
: 2.52mb
User
:
黄keke
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.