Can you please help me to write code on SRTF (Shortest Remaining Time First) on my O.S. subject!

The requirements are: Enter No. of Jobs, Arrival Time and the Burst time! PLZ HELP ME!

public class SRTF {
    // Your code here
}

Well, there's a start.

First of all create a Job object like I told you. Then a method that takes as argument the Jobs (array,vector, or anything else you want with Job objects) and write your code there.
Do you know how to sort an array because I think you have to do something similar (It's been a long time since I used a Shortest Remaining Time First algorithm for my OS subject)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.