Simple CPU Project as a Java Class

Ολοκληρωμένο Αναρτήθηκε Apr 9, 2012 Πληρώθηκε κατά την παράδοση
Ολοκληρωμένο Πληρώθηκε κατά την παράδοση

I need a system that can schedule the Operating System of a computer. It is not hard as it sounds, what I need is a simple java program that OS can decide when to assign processes to the CPU to be executed. The algorithm must be the queue algorithm. OS stores processes in a queue, over time some processes go out and some new ones enter in. Each time a new process must be removed from the top of the queue and must be assigned to the CPU for the execution. Details will be given. We must use Shortest Process Next algorithm (SPN), processes must be placed to the proper place in the queue by their execution time. Priority queues can be used.

I will give detailed information.

Note: This is for a work project and I need to see this because I need a different view of another person.

I need only a simple java program that acts like a CPU and its inputs and outputs are as follows (in a text file):

input:

5

P1 0 3

P2 2 5

P3 3 4

P4 6 7

P5 8 2

output:

Process Name|Entrance Time|Service Time|Exit Time|Time in the System

P1 | 0 | 3 | 3 | 3

P2 | 2 | 5 | 12 | 10

P3 | 3 | 4 | 7 | 4

P4 | 6 | 7 | 21 | 15

P5 | 8 | 2 | 14 | 6

Mean of Service Times = 4.2

Mean of Times in the System = 7.6

So I dont need a real huge CPU project, I only need a Java Class which will take the input txt file and does the above output txt file...

I will provide [url removed, login to view], you have to give me other Java file...

Java Linux Odd Jobs Εγκατάσταση Δέσμης Εντολών Δέσμες Εντολών Γλώσσας Υπολογιστή Αρχιτεκτονική Λογισμικού UNIX Windows Επιφάνεια Εργασίας

Ταυτότητα Εργασίας: #2730037

Σχετικά με την εργασία

1 πρόταση Απομακρυσμένη εργασία Ενεργό Apr 9, 2012

Ανατέθηκε στον:

thovn

See private message.

$21.25 USD σε 1 μέρα
(32 Αξιολογήσεις)
4.9