I need a system that can schedule the Operating System of a computer. It is not hard as it sounds, what I need is a simple java program that OS can decide when to assign processes to the CPU to be executed. The algorithm must be the queue algorithm. OS stores processes in a queue, over time some processes go out and some new ones enter in. Each time a new process must be removed from the top of the queue and must be assigned to the CPU for the execution. Details will be given. We must use Shortest Process Next algorithm (SPN), processes must be placed to the proper place in the queue by their execution time. Priority queues can be used.
I will give detailed information.
Note: This is for a work project and I need to see this because I need a different view of another person.