Professional Documents
Culture Documents
Practical 6
Practical 6
Practical 6
int main()
{
int nop;
int i;
int timeSlot;
int hover = 0;
cout<<"\nNUMBER OF PROCESSES: ";
cin>>nop;
int burstTime[10];
cout<<"TIME SLOT:";
cin>>timeSlot;
Output :
Number of processes: 5
Time slot:3
Process 1
burst time: 7
Process 2
burst time: 5
Process 3
burst time: 8
Process 4
burst time: 2
Process 5
burst time: 4
================================
process burst time
p1 7
p2 5
p3 8
p4 2
p5 4
================================