Skip to main content

Posts

Featured

SJF

import java.util.Scanner; public class Main { public static void main(String[] args) { System.out.println("Enter number of process");     Scanner in = new Scanner(System.in);     int n = in.nextInt();         int[] ar = new int[n];     int[] bt = new int[n];     int[] ct = new int[n];     int[] ta = new int[n];     int[] wt = new int[n];     int[] pid = new int[n];     int[] f = new int[n];         int st = 0, tot = 0;     for(int i = 0; i < n; i++){         System.out.println("Enter process" + (i + 1) + "arrival time");         ar[i] = in.nextInt();         System.out.println("Enter process" + (i + 1) + "burst time");         bt[i] = in.nextInt();         pid[i] = i + 1;         f[i] = 0;  ...

Latest posts

GUI Login

GUI Calci

FIFO

LRU

worstfit

Optimal

Bestfit

RoundRobin

firstfit

FCFS