Find Jobs
Hire Freelancers

c++ program tha simulates the service of jobs(programs) by the CPU of a multi-user computer

$30-31 USD

Geschlossen
Veröffentlicht vor mehr als 8 Jahren

$30-31 USD

Bezahlt bei Lieferung
PROJECT SPECIFICATIONS: In this project, you will write a program that simulates the service of jobs (programs) by the CPU of a multi-user computer. Before starting to write this program, you should review the discussion of time-driven simulations in the case study provided by the instructor. The program that you are writing is somewhat different, but you may be able to steal some of the design and code from that program. The job class and CPU time required for each job is determined using random number generator. Processing This is a clock-driven simulation, in which the clock is a counter that is incremented each simulated second. The clock is initially 0, and continues "ticking" until all the jobs in the input have been serviced and left the system. Unlike the simulation in the textbook, which ran for a specified number of clock ticks, this simulation runs until a particular number of jobs have been serviced and left the system. This number is input by the user. When a job enters the system, it is enqueued on a wait queue. The CPU's "queue" represents the jobs that are currently being serviced. If there is room in the CPU's queue, a job is dequeued from the wait queue and enqueued onto the CPU queue. Jobs in the CPU queue are serviced using the following scheme: although the CPU actually executes only one job at a time, there can be as many as ten jobs in the CPU queue. To service these jobs, the CPU allocates a "time-slice" to each job in the CPU queue, depending on its class. To the observer, it appears that the CPU services several jobs simultaneously; however, most jobs are interrupted when they require I/O or other services. To avoid idleness while waiting for the required service, the CPU starts working on the next job in the CPU queue. We simulate this by having each job fall into one of two job classes: I/O bound and CPU bound. I/O-bound jobs have a time-slice of 0.1 seconds, while CPU-bound jobs have a time-slice of 0.2 seconds. The job at the front of the CPU queue executes for its required time-slice; then it is dequeued and enqueued at the rear of the CPU queue. Jobs remain in the CPU queue until they complete their service time. Note that jobs may leave the CPU at non-integral times. I need it to be done within 5 hours
Projekt-ID: 9071662

Über das Projekt

7 Vorschläge
Remote Projekt
Aktiv vor 8 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
7 Freelancer bieten im Durchschnitt $63 USD für diesen Auftrag
Avatar des Nutzers
I am very proficient in c, c++. I have 16 years c++ developing experience now, and I have worked for 6 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$120 USD in 2 Tagen
4,8 (51 Bewertungen)
6,1
6,1
Avatar des Nutzers
Hi i have 11 years of experience and i have read all instructions. i shall deliver it by 9 pm IST ( +5 30).
$50 USD in 1 Tag
4,9 (9 Bewertungen)
4,2
4,2
Avatar des Nutzers
A proposal has not yet been provided
$45 USD in 3 Tagen
4,9 (6 Bewertungen)
2,5
2,5
Avatar des Nutzers
A proposal has not yet been provided
$111 USD in 4 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
1. Clearly understood the project need. 2. Have 9+ years of C++ experience with 3+ years as a team lead. 3. You can contact me to discuss further on it.
$35 USD in 3 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
United States
0,0
0
Mitglied seit Dez. 8, 2015

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.