Find Jobs
Hire Freelancers

Write some Software -- 2

$10-30 USD

Closed
Posted over 7 years ago

$10-30 USD

Paid on delivery
Instructions • Use any programming language you prefer. • Report, results and outputs are required. • There should be only 4 students in each group from any section • The due date for the project is: 1-Jan-2016 (Sunday) 12:noon • The front page of your report must have the names, student IDs and section number(s) for each student. • To get the grade, you must demonstrate the project. • All members of the group should be present during the project demo. • You must submit the project to Mohammad Jawed in his office (G-075-1) • Late submission of project is not allowed. Objective In this project, you will simulate a small part of operating system. You will gain knowledge of how operating system works. Moreover, you will measure the performance of various techniques, which will further enhance your understanding of the topic. Most importantly, you will show various statistics that reflects the efficiency of the techniques of interest and show some modification to the technique to enhance the overall performance. System Description: Consider a simple system with a single CPU, single I/O device. The CPU has a ready queue and an I/O queue. The system will serve several jobs sent in specified time one by one. You are required to simulate two different scheduling algorithms: 1. Shortest Job First (SJF non pre-emptive) 2. Round Robin (RR) assume quantum = 10ms However, once job is admitted to the ready queue, the state of the job switches to ready. Each job has PCB that contains all required information to identify the job such as its id, its state, and required statistics which include job nature (CPU bound or IO bound), turnaround time for each job, and waiting time for each job. You can add other fields to PCB to help you in programming. Your program should provide average turnaround time, average waiting time, and CPU utilization for a given input file. Possible Operations • Start timer from zero to check for arrival time of process/job. • Create Ready queue • Start reading the file • Create job queue • Read the file for each job (a line from input text file) (using thread) • Create PCB • Put PCB in job queue Note: File reading should be performed in an independent thread that creates the PCBs and put them in the job Queue. • Check time if first job has arrived in job queue • Move job to ready queue (using thread). Apply scheduling algorithm Structure of input file Input to the program is from a text file. The file contains job/process ID, its arrival time and then a sequence of CPU bursts and IO requests as CSV. For each job/process there could be a varying number of CPU bursts and IO requests as shown below. ID;Arrival time;CPU Burst;IO;CPU;IO;CPU;IO;…;CPU Example file 1;500;CPU:20;IO:5;CPU:40;IO:15;CPU:70;IO:3;CPU:1 2;700;CPU:60;IO:15;CPU:1 … … Notes • Your application must use threads (minimum two). • Assume I/O requests finish in the order of submission. • Context switching time is zero. • Use physical timer. • Show how to run your program and submit the implantation, results, and output files.
Project ID: 12343665

About the project

2 proposals
Remote project
Active 7 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
2 freelancers are bidding on average $101 USD for this job
User Avatar
I'm expert in C#
$90 USD in 0 day
5.0 (21 reviews)
5.2
5.2
User Avatar
A proposal has not yet been provided
$111 USD in 15 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SAUDI ARABIA
Saudi Arabia
0.0
0
Member since Dec 12, 2016

Client Verification

Other jobs from this client

Write some Software
$250-750 USD
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.