Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a java program for a Operating System (OS) Simulation of Treading Impact in the form of a thread oriented program. 3. This is

I need a java program for a Operating System (OS) Simulation of Treading Impact in the form of a thread oriented program.

image text in transcribed

3. This is an OS Simulation of Treading Impact exercise which you can use java to simulate Following are the rules: a. Create a multidimensional array with rows and columns, as this: Simulated Processing in milliseconds. Random(1- 10000) Task Priority Request Requester Time Echelon Random (1- 10) Random(1-1000) Random(1-5) 1 2 3 4 5 b. c. d. e. f. You need to create 5000 random records with these fields Priority 1 gets processed first/10 last Echelon 1 gets the first precedence, then the priority For process simulations use the Sleep Clause with a Fixed Second Process the Jobs in one Machine Instance (Thread) and record begin and end time to calculate total processing time g. Process the Jobs in two Machines Machine Instances (Threads) and record begin and h. When simulations are executed in multi-thread, theoretically (simulated), force each i. Record each task processing time, print a report in a file (log) by each task processing end time to calculate total processing time in both instances task to take a random of (20%-80%) more time in each task time and within a Single and the Double Threads with Total Processing Times

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

Step: 3

blur-text-image

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

List the advantages of correct report formatting.

Answered: 1 week ago