Home > Pascal, Sistem Operasi > Source Code Sistem Penjadwalan FIFO Dalam Pascal

Source Code Sistem Penjadwalan FIFO Dalam Pascal

Source code pascal berikut menerapkan konsep sistem penjadwalan FIFO (First In First Out) pada sistem operasi.

Program fifo;
uses crt;
var
   x:array[1..100] of integer;
   y:array[1..100] of integer;
   z:array[1..100] of integer;
   i,jum,n,t,jum2 : integer;

begin
clrscr;
  t:=0;
  jum:=0;
  write('Masukkan proses = ');readln(n);
  for i:= 1 to n do
   begin
     write('Proses ke-',i,' = ');readln(x[i]);
     y[i]:=t;
     z[i]:=x[i]+y[i];
     jum:=jum+y[i];
     jum2:=jum2+z[i];
     t:=x[i]+t;
   end;
    writeln('===================================================');
    writeln('Proses | CPU Time | Waiting Time | TAT ');
    writeln('===================================================');
    for i:=1 to n do
    begin
       writeln('   P',i,'         ',x[i],'          ',y[i],'          ',z[i]);
    end;
    writeln('===================================================');
    writeln('   Rata-rata = ','        ',jum/n:4:2,'        ',jum2/n:4:2);
    readln;
end.

Output program :

>> DOWNLOAD SOURCE CODE <<

  1. yosep
    January 11, 2011 at 10:50 am

    Kq ga da source program aplikasi penjadwalan dengan menggunakan PHP

  2. October 3, 2011 at 11:03 am

    GOOD BLOG NYA ITU PROGRAM BISA DIJALANKAN ATAU LENGKAP SOURCE CODE PROGRAMNYA

  3. fandy
    December 21, 2011 at 12:46 pm

    kalo mau buat coding fifo.. didalemnya ada procedure push nya atau pop nya,, bagaimana ya ? mohon dibantu .
    terimakasih

  4. April 18, 2014 at 2:49 pm

    I coulÔ€n’t refrain from commenting. Well written!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: