Question: (MUST BE DONE IN JAVA) To control the order in which allocation, deallocation, and compaction of blocks occurs, an input file shall be used to
(MUST BE DONE IN JAVA)
To control the order in which allocation, deallocation, and compaction of blocks occurs, an input file
shall be used to list actions (see 2.3.1) to be performed. This means that the file is to be read by your
program running the actions line by line. Simulation results shall be stored in one or more files
according to 2.3.2.
If there is not enough memory to allocate a block, the program should skip the instruction that
would lead to an error and continue the execution with the following statement, if any. The same
applies if a deallocation instruction refers to a non-existing ID. Note that all the occurred errors must
be documented and printed in the output file(s).
Also, all file paths shall be relative to your working directory
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
