İptal Edildi

CPU scheduling algorithm in bash script shell

You will write a shell script that will accept the number of process in queue and the CPU burst for each of the processes. It should allow user to select the option form the menu for the scheduling algorithm to be used. It should display the order in which the processes will be scheduled and the start time for each process and the average wait time for the processes. The tasks should be accomplished using arrays and at least two user defined functions.

Below is an example of how your program should interact with the user.

For example

No of processes : 4

CPU burst Time for processes in nano second

5 3 7 6

It will display the following CPU scheduling options to the user

1. Shortest Job First

2. Round Robin

If user chooses option1

Output for the given example will be

Scheduling order: P2 P1 P4 P3

Start time for each process: 0 3 8 14

Average wait time : (0+3+8+14)/4 = 25/4=6

If user chooses option2

Enter the quantum time: 4

Output for the given example will be

Scheduling order: P1 P2 P3 P4 P1 P3 P4

Start time for each process: 0 4 7 11 15 16 19

Average first service time : ( 0+ 4+7+11) /4 = 22/4= 5

*It should work on ubuntu

*You may add average wait time and turn-around time too.

Beceriler: Kabuk Betiği, Bash Scripting, Linux, Algoritma, UNIX

Daha fazlasını gör: cpu scheduling algorithm thesis, cpu scheduling algorithm java, cpu scheduling algorithm source code java, cpu scheduling algorithm source code visual basic, java code cpu scheduling algorithm, abstract cpu scheduling algorithm, round robin cpu scheduling algorithm java, round robin cpu scheduling algorithm visual basic, java program round robin cpu scheduling algorithm, java program cpu scheduling algorithm, simulate round robin cpu scheduling algorithm, project sample simulation cpu scheduling algorithm using java, cpu scheduling algorithm simulation sample programs, java code round robin cpu scheduling algorithm, simulation cpu scheduling algorithm, round robin cpu scheduling algorithm using java, round robin cpu scheduling algorithm, implement cpu scheduling algorithm java

İşveren Hakkında:
( 0 değerlendirme ) Al Mansurah, Egypt

Proje NO: #32248358

Bu iş için 2 freelancer ortalamada $53 teklif veriyor

mdo19

I read your project and i'm interested in. I can get the job done for you.

$80 USD in 3 gün içinde
(5 Değerlendirme)
3.6
tyuturkinnik

Dear Sir FCFS, SJF, Round Robin I'm interested in your project. I can finish your project perfectly. Please send me a message so that we can discuss more. https://www.freelancer.com/u/DaniilLakman This is my URL Thank Daha Fazla

$25 USD in 7 gün içinde
(2 Değerlendirme)
2.8