Write a java program that simulates a small cpu vm

Assignment Help JAVA Programming
Reference no: EM13843152

Question: Write a Java program that simulates a small CPU VM. The program dose not need a GUI. just displaying to the terminal, and outputting to a text file. I have enclose the described of the program and the file it will need to read. If you are able to help let me know thank you.

Project Description

Design and implement a program to simulate the operation of the SIMMAC based on the descriptions above.

Add a HALT instruction that dumps the contents of all registers and memory and then prints an "End of Job" message.

Your project must implement multi-tasking in a single queue using a round-robin scheduling discipline. You will implement process entities (jobs) that will allow your machine to run several SIMMAC machine-language programs. In order to do this you will define a Process Control Block (PCB) data structure that will be created for each job in your system. For this assignment assume each SIMMAC instruction is equivalent to one clock cycle. Additionally the time quantum value for round-robin scheduling is an integer multiple of a clock cycle.

The quantum value is to be set on the command line or prompted for during initialization. You will define the notion of an interrupt handler that will process a time quantum for each running job. On each job switch, you will print some state information such as which job will be loaded and the current state of the job queues.

Your version of SIMMAC will then run multiple SIMMAC machine language programs simultaneously. These programs will test the ability of your SIMMAC to handle multitasking and scheduling. You must design your system such that all SIMMAC machine programs are loaded from text files.

The SIMMAC must be designed to take command line arguments or to prompt for input files in addition to the previously specified items. By this mechanism, all SIMMAC language programs will be loaded. Since there is the LDI command, all data can be loaded into SIMMAC memory using SIMMAC programming statements.

Reference no: EM13843152

Questions Cloud

Assuming no existing inventories or scheduled receipts : What is the lead time (in weeks) to respond to a customer order for product A, based on the BOM shown, assuming no existing inventories or scheduled receipts?
Strategic frame assessment : Review "How Do We Describe a Firm's Strategy?" Write an executive memo for your project firm, Proctor & Gamble's Organization 2005. Communicate the findings from your preliminary analysis of the organization's strategy. Identify and analyze the firm'..
Cost of dell computer reflects inventory costs : What percentage of cost of a Dell computer reflects inventory costs? Assume Dell’s yearly inventory cost is 40 percent to account for the cost of capital for financing the inventory, the warehouse space, and the cost of obsolescence.
Corporations will less likely to act in socially responsible : Explain why you agree or disagree with the following proposition: "Corporations will be less likely to act in socially responsible ways if there is either too much, or too little competition."
Write a java program that simulates a small cpu vm : Design and implement a program to simulate the operation of the SIMMAC based - dumps the contents of all registers and memory and then prints an "End of Job" message.
Implementing logistics measurement system : Discuss some of the key considerations for a logistics manager who is designing and implementing a logistics measurement system in his or her organization.
Most beneficial to logistics management : What advances in telecommunications technology do you view as being most beneficial to logistics management? Why?
Analyzing resources and capabilities of the firm : Analyze the key resources and core capabilities of Proctor and Gamble Organization 2005. Identify the functional areas of the firm's organization or the activities in the value chain where the key resources and core capabilities reside (Classifying C..
Summarize the goals of the tobacco industry research : Watch the "Cozy Killer: The History of Cigarettes" video. (http://digital.films.com/PortalViewVideo.aspx?xtid=36094). Summarize the goals of the tobacco industry's research. Discuss the advantages and limitations of replication in the tobacco industr..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a frame and set its layout to flowlayout

Create a frame and set its layout to FlowLayout, create two panels and add them to the frame and Each panel contains three buttons. The panel uses FlowLayout.

  Build a very straightforward and fully functional machine

Build a very straightforward and fully functional machine learning classifier with the K-Nearest Neighbor (KNN) algorithm. The KNN model will read a set of data specified by the user, decide the appropriate class of the new instance, and finally o..

  Write a method to save a linked list to a text file

Write a method to save a Linked List to a text file called file.txt. It must save the Linked List to the file with each node on a different line.

  Question 1when you use the mvc pattern the controller

question 1when you use the mvc pattern the controller directs the flow of control toa. the browser and the modelb. the

  Build an android application to execute some of the queries

Build an android application to execute some of the queries -

  Write a bluej project- birthday paradox

The birthday paradox states that if there are 23 people in a room then there is a slightly more than 50:50 chance that at least two of them will have the same birthday.

  Implements the measurable interface

Implement a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+).

  Create a function that multiplies numeric matrices

Create a function that multiplies numeric matrices on an element-by-element basis.

  Write a program that reads a set of floating-point

Write a program that reads a set of floating-point data values from the input.

  Program should assign a seat in the first class

If a person enters 1, your program should assign a seat in the first class (rows 1 - 3). If a person enters 2, your program should assign a seat in business class (rows 4 - 7). If a person enters 3, your program should assign a seat in economy class ..

  Use a loop to allow a user to enter a series of numbers

Use a loop to allow a user to enter a series of numbers and then print out the series of numbers when the user is done. The user stops the lseries program by entering -1 (or any negative number).

  Display the program output of the collision results

According to my lecturer, I need the tutor to display the 'program output' of the collision results implemented by BirthdayAttack.java in a output.txt file. Can the tutor do this?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd