Im writing a C program about a scheduling algorithm, Ive done a big part of it but i cant get it work properly and my deadline is tomorrow.
I can send the full info and my code
can you please add comments so i can understand
my deadline is tomorrow morning so it has to be ready by 7AM or 8AM maximum thats seven hours can you do it? I did most of it but I cant get it to work as I dont know how to deal with pointers that well.
I would really appreciate it if you can get it done in time, I'm going to bed know here are all the files:
can you please cancel the question
ok I will wait but it has to be done in a couple of hours as im past my deadline.
A display for 3 processes labelled A, B and C. Where
A requires 2 units of time NUT = 2, and arrival time AT = 0.
B requires 3 units of time NUT = 3, and arrival time AT = 0.
C requires 2 units of time NUT = 2, and arrival time AT = 2.
And the unit time allowed for each process UT = 1 with the two incremental factors ready_list = 2; accepted_list = 1
Note when two or more processes have an equivalent arrival times then queue them in the order they arrive i.e. 1st come 1st on the queue.
Assume processes are migrated from the ready_list to the accepted_list at the end of a timecycle
Your program should then display
T A B C
0 R W -
1 W R -
2 R W W
3 F R W
4 F W R
5 F R W
6 F F R
7 F F F
Each run should stop when all processes have F status; where T shows each unit cycle of time.
Finally your program should display the stats associated with each processes throughput, namely arrival time, start time, wait time, completion time, NUT, penalty ratio.
I dont think it working correctly its not behaving like in the ppt if you can fix that, also if you can add an option to load the info from a file.
here are some questions I have
void move_to_list(proces **list1, proces **list2); // what does the 2 ** mean?
get_process_list(&process_list, &quanta, &a_inc, &b_inc);// why & ?
(*accepted_list)->state[t_slice] = 'R'; // why ()
sorry it works my mistake.