Find Jobs
Hire Freelancers

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

$30-31 USD

Closed
Posted over 8 years ago

$30-31 USD

Paid on delivery
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
Project ID: 9071662

About the project

7 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $63 USD for this job
User Avatar
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 days
4.8 (51 reviews)
6.1
6.1
User Avatar
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 day
4.9 (9 reviews)
4.2
4.2
User Avatar
A proposal has not yet been provided
$45 USD in 3 days
4.9 (6 reviews)
2.5
2.5
User Avatar
A proposal has not yet been provided
$111 USD in 4 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Dec 8, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.