国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

COMP2012J 代寫、代做 java 設(shè)計(jì)編程
COMP2012J 代寫、代做 java 設(shè)計(jì)編程

時(shí)間:2024-12-22  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



Operating Systems COMP2012J Assignment 02: Memory Management 2024-25
1 Memory Management Simulator
Please find the memory management source files from the moodle. This simulator illustrates page fault behaviour in a paged virtual memory system. The program reads the initial state of the page table and a sequence of virtual memory instructions and writes a trace log indicating the effect of each instruction.
To make things easier for you, we have implemented the FIFO page replacement algorithm already. Please go through the implementation carefully so that you can work out how to write your own page replacement algorithms. Please go through the instructions carefully and complete the assignment.
 2
1
Running the simulator
• Compile the java code using the following command. 1 $ javac *. java
 • The program reads a command file, configuration file, and writes a trace file. • You can run the program by running the following command.
$ java MemoryManagement commands memory.conf
• ‘commands’ refers to the file where we state the command sequence we need to run on the system.
 • ‘Memory.conf’ file has the initial configuration of the system.(i.e: ’memory FIFO.conf’) 2.1 The command file
The command file for the simulator specifies a sequence of memory instructions to be performed. Each instruc- tion is either a memory READ or WRITE operation, and includes a virtual memory address to be read or written. Depending on whether the virtual page for the address is present in physical memory, the operation will succeed, or, if not, a page fault will occur.
2.1.1 Operations on Virtual Memory
There are two operations one can carry out on pages in memory: READ and WRITE. The format for each command is,
operation address
Or
operation random
where the operation is READ or WRITE, and the address is the numeric virtual memory address, optionally preceded by one of the radix keywords bin, oct, or hex. If no radix is supplied, the number is assumed to be decimal.
The keyword random will generate a random virtual memory address (for those who want to experiment quickly) rather than having to type an address.
For example, the sequence,
1 2 3 4
 1
1
  READ bin 01010101
 WRITE bin 10101010 READ random
WRITE random
causes the virtual memory manager to:
 University College Dublin 1

Operating Systems
COMP2012J 2024-25
Assignment 02: Memory Management
 1. Read from virtual memory address 85
2. Write to virtual memory address 170
3. Read from some random virtual memory address 4. Write to some random virtual memory address
2.2 The Configuration File
 1
The configuration file memory.conf is used to specify the initial content of the virtual memory map (which pages of virtual memory are mapped to which pages in physical memory) and provide other configuration information, such as whether the operation should be logged to a file.
2.2.1 Setting Up the Virtual Memory Map
The ’memset’ command is used to initialize each entry in the virtual page map. ’memset’ is followed by six integer values:
1. The virtual page number to initialize
2. The physical page number associated with this virtual page (-1 if no page assigned) 3. If the page has been read from (R) (0=no, 1=yes)
4. If the page has been modified (M) (0=no, 1=yes)
5. The amount of time the page has been in memory (in ns)
6. The last time the page has been modified (in ns)
The first two parameters define the mapping between the virtual page and a physical page if any. The last four parameters are values that might be used by a page replacement algorithm.
For example:
memset 34 23 0 0 0 0
specifies that virtual page 34 maps to physical page 23, and that the page has not been read or modified.
Note:
• Each physical page should be mapped to exactly one virtual page.
• The default number of virtual pages is 64 (0..63).
• The number of physical pages cannot exceed 64 (0..63).
• If a virtual page is not specified by any ’memset’ command, it is assumed that the page is not mapped. • ’memset’ commands must be defined at the end of the configuration file.
2.2.2 Other Configuration File Options
There are several other options which can be specified in the configuration file. These are summarized in the table below.
 University College Dublin 2

Operating Systems
Keyword
COMP2012J Assignment 02: Memory Management 2024-25
  Values
Description
   enable logging
 true false
 Whether logging of the operations should be enabled. If logging is enabled, then the program writes a one-line message for each READ or WRITE operation. By default, no logging is enabled. See also the ’log file’ option.
  log file
 trace-file-name
 The name of the file to which log messages should be written. If no filename is given, then log messages are written to stdout. This option has no effect if ’enable logging’ is false or not specified.
  pagesize
 n
power p
 The size of the page in bytes. This can be given as
a decimal number which is a power of two (1, 2, 4, 8, etc.) or as a power of two using the power keyword. The maximum page size is 67108864 or power 26. The default page size is power 26.
  addressradix
 n
 The radix in which numerical values are displayed. The default radix is 2 (binary). You may prefer radix 8 (octal), 10 (decimal), or 16 (hexadecimal).
    physicalMemSize replacementAlgorithm
n
FIFO |LRU |Clock policy
The size of the physical memory as a measurement of the number of pages. The page replacement algorithm to use in the simulator.
  1
2.3 The Output File
The output file contains a log of the operations since the simulation started. It lists the command that was attempted and what happened as a result. You can review this file after executing the simulation.
The output file contains one line per operation executed. The format of each line is:
command address ... status
Where:
• command is READ or WRITE.
• address is a number corresponding to a virtual memory address. • status is okay or page fault.
Example:
1 2 3
  READ 10000000 ... okay READ 10000000 ... okay
 WRITE c0001000 ... page fault
3 Assignment
3.1
• • •
3.2
• •
Task 1
Read and understand the simulator and the implementation of the FIFO algorithm. Run the program with the ’commands’ file and the ‘memory_FIFO.conf’ file.
Identify how the FIFO algorithm works.
Task 2
Implement Least recently used(LRU) page replacement algorithm in the ‘PageFault.java’ and call it within the ‘replacePage()’ method.
Use the ‘tracefile_LRU’ as a reference for what your output should look like when you run the program with the ‘commands’ file and the ‘memory_LRU.conf’ file.
 University College Dublin 3

Operating Systems COMP2012J Assignment 02: Memory Management 2024-25
 3.3
• •
Task 3
Implement the Clock-policy page replacement algorithm in the ‘PageFault.java’ and call it within the ‘replacePage()’ method.
Use the ‘tracefile_clock’ as a reference for what your output should look like when you run the program with the ‘commands’ file and the ‘memory_clock.conf’ file.
4 Submission
• You do not have to worry about the input type of the addresses while implementing page replacement algorithms since all the addresses are converted and saved as decimal numbers by the kernel.
• Submit the ‘PageFault.java’ file to the submission link in the moodle before the deadline.
• Please keep the code clean and add comments. There will be marks for the code quality and comments.
Your submission will be tested against inputs that we have designed.
• Do NOT change any source file other than the ’PageFault.java’.
• Do NOT change the function interfaces of any functions in the ’PageFault.java’. Any change will result in your code failing the tests.
• If you need more static variables for your implementation you can define them without changing other data structures inside the ’PageFault.java’.
• Do NOT output anything other than what has been asked for. If you have added any outputs for your convenience, you should remove/comment them before submission.
  University College Dublin 4

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:COMP1038 代寫、C++編程設(shè)計(jì)代做
  • 下一篇:代做 CSCI-GA.2662編程、代寫 Python/java 程序
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美精品久久96人妻无码| 91久久精品国产91久久| 久久97精品久久久久久久不卡| 久久九九精品99国产精品| 色视频www在线播放国产成人| 69精品丰满人妻无码视频a片| 91精品免费久久久久久久久| 91久久国产自产拍夜夜嗨 | 婷婷久久青草热一区二区| 亚洲午夜久久久影院伊人 | 国产在线xxxx| 国产精品主播视频| 91av成人在线| 国产成人精彩在线视频九色| 久久久久久久久久网| 日批视频在线免费看| 亚洲欧洲精品在线观看| 99热国产免费| yellow视频在线观看一区二区| 国产精品一区二区欧美黑人喷潮水| www.com毛片| 国产精品∨欧美精品v日韩精品| 久久99精品国产99久久| 久久精品国产亚洲7777| 欧美成人在线免费| 天堂va久久久噜噜噜久久va| 欧美专区日韩视频| 国产综合av在线| 国产伦精品一区二区三| 91精品国产综合久久久久久久久| 久久国产手机看片| 精品国模在线视频| 美女精品久久久| 午夜肉伦伦影院| 欧美与黑人午夜性猛交久久久 | 国产免费久久av| 国产成人在线视频| 国产精品久久一区二区三区| 一区精品在线| 青草青草久热精品视频在线观看| 国产区亚洲区欧美区| 99久久激情视频| 精品国内产的精品视频在线观看| 一区二区三区免费看| 茄子视频成人免费观看| 韩日午夜在线资源一区二区| 91福利视频网| 欧美xxxx做受欧美.88| 日韩高清国产精品| 成人精品久久一区二区三区| 国产精品视频在线观看| 日本香蕉视频在线观看| www日韩视频| 国产精品国产亚洲伊人久久| 亚洲av综合色区| 国产欧美日韩免费| 久久人妻精品白浆国产| 日韩av不卡播放| 逼特逼视频在线| 超碰91人人草人人干| 欧洲日韩成人av| 久久人妻精品白浆国产| 精品久久蜜桃| 男人天堂成人在线| www国产91| 日本一区二区三区www| 91九色在线视频| 亚洲综合日韩中文字幕v在线| 国产午夜精品一区| 久久精品中文字幕| 日韩wuma| 91高潮在线观看| 亚洲综合在线小说| 国产伦精品一区二区三区免费视频| 久久精品视频在线| 欧洲精品在线播放| 色妞久久福利网| 日本高清一区| 国产成人高潮免费观看精品 | 久久久亚洲精选| 亚洲综合精品一区二区| 国产熟女高潮视频| 久久综合久久88| 欧洲中文字幕国产精品| 国产福利成人在线| 日韩中文字幕一区| 久久亚洲精品欧美| 日韩在线综合网| 91久久久精品| 亚洲欧美综合一区| 97久草视频| 天天夜碰日日摸日日澡性色av| 97干在线视频| 欧美激情乱人伦| 国产女主播一区二区三区| 久久综合电影一区| 国产美女在线精品免费观看| 欧美日本高清一区| 免费观看国产成人| 欧美成人一区在线| 国产精品专区在线| 亚洲精品中文字幕在线| 亚洲电影一二三区| 91九色在线观看| 欧美一区二区三区图| 久久99久久精品国产| 欧美日韩在线不卡视频| 国产精品二区三区| 国产精品专区第二| 欧美一区二区视频17c| 久久精品magnetxturnbtih| 人妻夜夜添夜夜无码av| 国产精品国色综合久久| 黄色一级大片在线观看| 欧美精品福利在线| 久久久亚洲天堂| 欧美亚洲一级二级| 精品蜜桃一区二区三区| dy888夜精品国产专区| 日本手机在线视频| 久久成人综合视频| 99精品人妻少妇一区二区| 日韩免费视频在线观看| 精品视频9999| 国产极品尤物在线| 欧美日韩一区二区在线免费观看| 久久成人亚洲精品| 久久久一本二本三本| 日本成人精品在线| 久久成人精品电影| 久久久久久久久久福利| 国产精品一区二区久久| 欧美一级成年大片在线观看| 最新av网址在线观看| 日韩中文字幕精品视频| 国产精品一区二区女厕厕| 日韩视频在线免费看| 欧美黄网免费在线观看| 久久久久久欧美精品色一二三四 | 日本天堂免费a| 麻豆国产va免费精品高清在线| 99久久99| 韩国精品一区二区三区六区色诱| 午夜精品久久久久久久99热 | 欧美与黑人午夜性猛交久久久 | 视频在线观看99| 成人中文字幕av| 黄网站欧美内射| 色噜噜一区二区| 久久99精品久久久久久青青91| 九九九九久久久久| 99久热在线精品视频| 国产日韩精品在线观看| 欧美在线一级va免费观看| 五月婷婷一区| 欧美激情国产日韩精品一区18| 久久久精品一区| 国产精品a久久久久久| 欧美最猛黑人xxxx黑人猛叫黄| 欧美激情一级二级| 久久久久久国产三级电影| 99精品国产一区二区| 精品视频一区在线| 欧美日韩一区二区三区在线观看免| 亚洲最大av在线| 超在线视频97| 国产精品久久久亚洲| 色老头一区二区三区| 久久青青草综合| 91免费视频国产| 国产精品亚洲综合天堂夜夜| 国产日韩欧美另类| 欧美极品日韩| 欧美日韩第二页| 欧美视频在线观看视频| 欧美专区福利在线| 欧美视频在线第一页| 人妻熟女一二三区夜夜爱 | 久久香蕉视频网站| 丰满少妇久久久| 国产欧美日本在线| 国产欧美日韩亚洲| 国产伦精品一区二区三区视频孕妇 | 国产极品在线视频| 97精品一区二区三区| 国产精品亚洲аv天堂网| 国产日韩视频在线播放| 国内精品400部情侣激情| 国内精品国产三级国产99| 欧美日本国产精品| 欧美日韩天天操| 欧美在线观看黄| 国内久久久精品| 国产欧美一区二区| 91九色蝌蚪国产| 日韩在线激情视频| 国产精品大陆在线观看| 精品国产91亚洲一区二区三区www| 精品国产aⅴ麻豆| 亚洲精品偷拍视频|