Question Description
in side the project.zip there are some file the you will use as input and "README" .you should read the data file "README" to know how to make the program. Also there are some data file "1p9595" and other you will use as input file.
Develop a simulation program toinvestigate the relative effectiveness of the FIFO, LRU, and OPT pagereplacement strategies. Your program should measure the number of pagefaults generated by each strategy.
Your simulator should read areference string from a file. The reference string items will be of theform: , where PID is a process ID and page ref is a page of thatprocess' logical memory. There will be one reference per line of thefile. For example, the following might be the beginning of an inputfile:
1 45
1 46
1 45
1 44
1 45
2 45
2 46
2 47
2 47
2 46
Thisreference string corresponds to Process 1 accessing its pages 45, 46,45, 44, and 45, then Process 2 accessing its pages 45, 46, 47, 47, and46. We will assume a pure demand paging system (i.e., no prefetching).The simulation also must allow the number of physical frames to bespecified. So for example, if there are 3 or more frames available, theabove reference string will cause 6 page faults for all three strategies(one for each time a new page is referenced). If there are only 2frames available, then there would be 6 page faults for LRU and OPT, and7 page faults for FIFO.
Theinput file name and the number of physical frames may be enteredinteractively or on the commandline. The output for this simulation isthe number of page faults generated for each replacement strategy.
Forthe purposes of making this simulation manageable, assume a program has2 megabytes (2048 kilobytes) of virtual memory divided into 1K pages(i.e., a program can generate page references from 0 to 2047), and therewill no more than 150 processes (PIDs 0 to 149). We also will assume aglobal replacement strategy. That is, when a page fault occurs, thevictim page can be taken from any process. We will ignore the issue ofdirty pages by assuming that all victim pages have not been modified.
Assignment (40 points)
(20points) This project is to be done individually. Each student mustimplement a simulation meeting the specifications above for each pagereplacement algorithm with a physical memory size (in frames) that canbe set for each run of the program.
The simulator may be writtenin any language for either Linux (projects must run on csserver) orWindows (projects using any IDE available in CS Lab are acceptable).However, the instructor can provide assistance only for C/C++ projects,and maybe Java projects. Provide a makefile that will make your projectif it needs to be compiled. The file names and frame number value may beprovided to the simulation either as commandline arguments orinteractively. Hardcoding the test file names or frame number valuesinto the program is not acceptable.
What to Submit
Create a tarfile or zipfile containing the following:
- Thewell documented code source code for your project. If you aresubmitting a Windows project, submit the entire project folder
- A makefile to make your project, if needed
- A single document in PDF format containing(output):
1-instructions on how to build and/or run the program.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.