Category: operating system

operating system program in java

round robin scheduling algorithm program in java

Round-robin Scheduling algorithm (RR) is designed especially for a time-sharing system.It is similar to FCFS scheduling, but preempted is added to switch between processes.A small unit of time called a time quantum is defined.a...

first fit program in java

first fit program in java

import*; class firstfit { public static void main(String args[])throws IOException { int n,i,it; DataInputStream in=new DataInputStream(; System.out.println(“Enter Number of Holes”); n=Integer.parseInt(in.readLine()); int sp[]=new int[n]; for(i=0;i<n;i++) { System.out.println(“Enter size of Hole”+(i+1)); sp[i]=Integer.parseInt(in.readLine()); } System.out.println(“Before...