Find Jobs
Hire Freelancers

43461 cpu scheduler in java or vb

N/A

Käynnissä
Julkaistu yli 18 vuotta sitten

N/A

Maksettu toimituksen yhteydessä
In this project, you are to write a simulation of CPU scheduling. The operating system must select one of the processes in the ready queue to be executed. You are to simulate the following scheduling algorithms. First Come, First Serve (FCFS) scheduling algorithm. Simulate the system using FCFS scheduling. The FCFS scheduling algorithm is not preemptive (once a job starts, it runs to completion). Shortest Job First (SJF) scheduling algorithm. Simulate the system using SJF scheduling. The SJF scheduling is not preemptive. Shortest Remaining Time First (Preemptive SJF) scheduling algorithm. Simulate the system using Preemptive SJF scheduling. At any given time, you are to be running the process with the least remaining processing time. For example, you can have the following case. You are running process A. Process B arrives, which is shorter than the remaining time of process A. You enter the task switch overhead to switch to job B. Priority Scheduling. Simulate the system using preemptive priority scheduling. Round Robin Simulate the system with round-robin scheduling, using a time quantum of Q=1 and Q=10 (I.e. each of these simulations is run for each quantum size). When a new process arrives, it always goes in the back of the queue. Data You should simulate the arrival of 200 processes into the ready queue to be executed. Please generate the processes only once, save their process control blocks (PCB) and reuse the same processes for each simulation. The records in the queue are PCBs of the processes. You should generate your own arrival, burst, and other service times and priorities for each process. Arrival and burst times should be given in milliseconds. Priorities should be in the range of 0 to 7. Use 0 to represent high priority. Note that for each simulation, the i'th customer will arrive at the same time, and will require the same amount of service time. Thus any difference in performance should be due to the different scheduling algorithms, not differences in the random numbers. For test and debugging purposes, you should also provide a sample set of five processes and calculate results manually. Arrivals Processes arrive with inter-arrival times. The simulation ends when the 200'th customer arrives. Note that the system starts empty, and that the first customer arrives at time T1, (not 0) i.e. after the first inter-arrival time is added to zero. Service Times For each scheduling algorithm, consider two cases: The time X to switch between processes is either 0.0 or 0.10. I.e. each simulation is run two times. This overhead is incurred whenever: a) There is a task switch from job A to job B b) A job arrives to an empty system. c) If the clock interrupts at the end of a quantum and the same job is resumed, the overhead is X/2. You can consider other logical overhead items. Output Please put together a table showing your simulation results in some clear and useful manner. Compute throughput, the average turnaround time, and the average waiting time for all processes that have completed service and left the system Compute the average of the inter-arrival times, for all 200 processes, and print them out. Compute the average of the service times, for all 200 processes, and print them. You should also show the results of all of your simulations using the test data (a sample set of five processes) Hint. You should write an event driven simulation, not a clock or interval type simulation. What this means is that your simulator basically cycles through the following loop: (start loop)- (get event)- (reset clock to event time)- (update system statistics)- (update system state)- (generate any new events and put them on event list)- (continue loop). Your project report should include all steps from the Report Requirements. When you analyze the problem, please do not forget to discuss the method that will be used. When you design the solution, please do not forget to show the algorithm . Both steps are very important and they should appear in your report. attached is a zip file with C++ code that actually fulfills most of this project, although maybe with some mistakes, please try to reprogram it in java or visual basic 6.0 and correct whatever mistakes you come across. this project is due this coming monday 24th or the morning of the 25th. no later.
Projektin tunnus (ID): 1792872

Tietoa projektista

1 ehdotus
Etäprojekti
Aktiivinen 12 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
Hello. See details in PMB
$55 USD 7 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan  lippu
5,0
6
Liittynyt lokak. 23, 2005

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.