Answered step by step
Verified Expert Solution
Question
1 Approved Answer
College Of Engineering & Technology Computer Science Department Comp 4 3 1 Final Project midnight : 1 5 / 0 6 / 2 0 2
College Of Engineering & Technology
Computer Science Department
Comp Final Project midnight :
The project simulates the memory management technique, "Multiple Partitions Variable Regions", known in IBM machines as MVT Multiprogramming with Variable number of Tasks
Write a program to simulates the behavior of MVT memory management. technique.
Consider a memory of size GB MB MB is allocated for the OS
Initially, the ready queue and the job queue are represented by the text files ready.txt and job.txt each line in the files contains:
Processno processsize timeinmemory
Read the given text file ready.txt and allocates all the process to memory in the same
order given in the file.
Whenever a job finishes execution, a new job is brought from the job queue on FCFS
with skip.
I suggest to use a table data structure to represent PCB that contains, processid size, time in memory, base & limit registers.
When the number of holes in memory a compactiondefrag must be done, that is reallocates the jobs again in memory creating one big hole at high memory.
You should maintain a lists of allocated regions and free holes.
What is the output of the project?
Use graphics to show a diagram of memory contents in details.
The contents of the ready & job queues in every step.
Which job finishes execution, which job brought into memory to replace it ready queue
A diagram showing memory allocated partitions and free holes when the job finishes execution.
A diagram showing all memory partitions before and after compaction.
Note:
You are allowed only to use JAVA programming language, any other language will not accepted and you get mark.
you can only use Java fx or Java swing for UI if necessary.
You are allowed only to use built in Java packages, DONT use any open source libraries.
Make sure your code well commented.
Submitted files with java extension, any other extension will not be accepted.
Put your files in one folder and name it with your name id
Make sure not to share your work with others and using any AI tools, you will get mark.
You should work individually only, any signs of cheating whatsoever will be penalized severely.
No programs will be accepted after the deadline for any reason.
Your program will be tested with my files ready.txt and job.txt
Submit your project by replying to the message ProjectS on Ritaj web page.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started