round robin

Completato Pubblicato Apr 8, 2003 Pagato alla consegna
Completato Pagato alla consegna

The Multilevel Feedback Queue(q=2i)has at most 5 queues. q0,q1,...,q4 and he schedule in each queue is round robin with time slice = 2i. A process is put into queue q0 when it enters the system, and is demoted to the next lower level queue when it finishes running its time slice. Write a C++ program which will compile under g++ and run on the unix operating system on pegasus, which will read several lines from a file named processes.txt. Each line in the file contains two integers: the first integer represents the arrival time of a process and the second integer represents the service time for this process. Each line corresponds to one process, and you do not know in advance how many lines there will be in the file. At the end of the last line, there will be an end-of-file character. The program you write will calculate the Feedback schedule for q=2i for the collection of processes whose vital statistics the program read from the file processes.txt. The schedule should be written to a file called schedule.txt. The form of the schedule should be 1,1,1,2,3,2,2,4,5,3,3,4,4,5,2,2,2,3,4,4 for Feedback q=2i. If the CPU is idle for a number of unit times, you should indicate this by a sequence of contiguous commas, i.e., ,,,,,, You may assume that the lines of [url removed, login to view] are sorted according to arrival times.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4)Would like in a winzip folder

## Platform

c++ or in unix

Programmazione C Ingegneria Linux MySQL PHP Architettura Software Testare Software UNIX

Rif. progetto: #2923597

Info sul progetto

2 proposte Progetto a distanza Attivo Apr 10, 2003

Assegnato a:

vw767279vw

See private message.

$12 USD in 14 giorni
(17 valutazioni)
2.7

2 freelance hanno fatto un'offerta media di $16 per questo lavoro

maxteamvw

See private message.

$19.55 USD in 14 giorni
(1 Recensione)
0.0