Concluído

Design and Implement

Design and implement a program to simulate processor scheduling. Theprogram will support round-robin scheduling. The program must maintain a ready queue and a list of waiting processes. The simulation will run in integer time steps. Input to the program will consist of the following information. No particular line fomat is [url removed, login to view] are to be separated by white space. int maxTimeSlice int snapshotInterval string processId int arrivalTime int cpuBurst int waitTime ... repeated cpu and wait pairs with final waitTime entry -1 Additional process descriptions follow until end of file Example (annotated): 10 50 P1 0 20 2 5 6 15 3 30 2 1 1 1 0 1 -1 P2 0 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 -1 P3 20 50 2 50 2 50 2 50 -1 P4 50 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 -1 P5 55 100 -1 Processor Scheduling Simulation Annotated Example Input (Annotation in parentheses): 10 (CPU Quantum) 50 (Snapshot Interval) P1 (Process Id) 0 (Arrival Time) 20 (CPU Burst 1) 2 (Wait Time 1) 5 (CPU 2) 6 (Wait 2) 15 (CPU 3) 3 (Wait 3) 30 (CPU 4) 2 (Wait 4) 1 (CPU 5) 1 (Wait 5) 1 (CPU 6) 0 (Wait 6) 1 (CPU 7) -1 (Sentinel) P2 0 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 1 5 -1 P3 20 50 2 50 2 50 2 50 -1 P4 50 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 -1 P5 55 100 -1

## Deliverables

Execution Example (corrected for time 30 on): Ready Processes are shown as ProcessId(RemainingCPUBurst) Running Processes are shown as ProcessId(EndOfCPUBurstTime;RemainingCPUBurst) EndOfCPUBurstTime = StartOfBurstTime + min(RemainingCPUBurst, CPUQuantum) Waiting Processes are shown as ProcessId(EndOfWaitTime) EndOfWaitTime = StartOfWaitTime + WaitTime Time Ready Running Waiting Comment 0 P2(5)->P1(20) Before dispatch 0 P2(5) P1(10;10) After dispatch 10 P1(10)->P2(5) Before dispatch 10 P1(10) P2(15;0) After dispatch 15 P1(25;0) P2(16) P2 waiting until 15+1 16 P2(5) P1(25;0) P2 done waiting 20 P3(50)->P2(5) P1(25;0) P3 arrives 25 P3(50) P2(30;0) P1(27) P1 waiting until 15+2 27 P1(5)->P3(50) P2(30;0) P1 done waiting 30 P1(5) P3(40;40) P2(31) P2 done running 31 P2(5)->P1(5) P3(40;40) P2 done waiting 40 P3(40)->P2(5) P1(45) 45 P3(40) P2(50;0) P1(51) 50 P4(5) P3(60;30) P2(51)->P1(51) P2 done, P4 arrives; Snapshot On each multiple of the snapshotInterval, the program will print a snapshot of the current state showing the time, the process in execution if any, the processes on the ready queue, in order, and the processes on the waiting list. When a process completes execution, the program will print the processId, the arrival time, start time (first time on CPU,) the completion time, the amount of CPU time used, and the amount of wait time for the process. Sample code: The program file, [url removed, login to view], is a schedule simulation for a multiprocessing batch system. It illustrates several techniques that may be useful in developing a solution to the assigned problem. The executable code, [url removed, login to view], and a test data file, [url removed, login to view], are available for you to run. To execute this program, download the exe file and the data file to your system and then enter the command [url removed, login to view]

## Platform

Windows and Linux.

Habilidades: Programação C, Engenharia, Linux, Microsoft, MySQL, PHP, Arquitetura de software, Teste de Software, UNIX, Área de trabalho do Windows

Veja mais: windows batch programming, the string problem, string in cpp, string cpp, snapshot design, quantum programming, quantum design, programming with cpp, programming techniques, programming schedule, on line data entry test, download data entry test, design process steps, design and print, data entry test download, data entry processor, data cpp, c# useful, cpp string example, cpp string

Acerca do Empregador:
( 16 comentários ) United States

ID do Projeto: #2950340

Concedido a:

teamvw

See private message.

$21.25 USD em 14 dias
(36 Comentários)
3.8

6 freelancers estão ofertando em média $20 para esse trabalho

vw821235vw

See private message.

$25.5 USD in 14 dias
(94 Comentários)
4.3
lubnavw

See private message.

$17 USD in 14 dias
(10 Comentários)
3.8
negue

See private message.

$25.5 USD in 14 dias
(17 Comentários)
3.3
vw547142vw

See private message.

$8.5 USD in 14 dias
(18 Comentários)
2.4
palssoft

See private message.

$21.25 USD in 14 dias
(4 Comentários)
2.3