Answered step by step
Verified Expert Solution
Link Copied!

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 431 Final Project midnight : 15/06/2024
1) The project simulates the memory management technique, "Multiple Partitions -Variable Regions", known in IBM machines as MVT (Multiprogramming with Variable number of Tasks).
2) Write a program to simulates the behavior of MVT memory management. technique.
3) Consider a memory of size 2 GB=2048 MB,512 MB is allocated for the OS.
4) 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:
Process-no process-size time-in-memory
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.
5) I suggest to use a table data structure to represent PCB that contains, process-id, size, time in memory, base & limit registers.
6) When the number of holes in memory >3, a compaction(defrag) must be done, that is, reallocates the jobs again in memory creating one big hole at high memory.
7) 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:
1. You are allowed only to use JAVA programming language, any other language will not accepted and you get 0 mark.
2. you can only use Java fx or Java swing for UI if necessary.
3. You are allowed only to use built in Java packages, DONT use any open source libraries.
4. Make sure your code well commented.
5. Submitted files with .java extension, any other extension will not be accepted.
6. Put your files in one folder and name it with your (name - id).
7. Make sure not to share your work with others and using any AI tools, you will get 0 mark.
8. You should work individually only, any signs of cheating whatsoever will be penalized severely.
9. No programs will be accepted after the deadline for any reason.
10. Your program will be tested with my files ready.txt and job.txt.
11. Submit your project by replying to the message 431-Project-S23 on Ritaj web page.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions