CPU Scheduling Algorithms

Submitted by: 
Visitors have accessed this post 32963 times.

A simple program demonstrating the preemptive and non-preemptive CPU scheduling algorithms (First Come First Serve, Shortest Process First, Shortest Remaining Time First, Priority Scheduling - both preemptive and non-preemptive, and Round Robin. The program includes customizable list of processes wherein the user can enter new ones, edit and delete existing processes. It also includes an execution log that displays the progress of the algorithm execution. The user can also adjust the execution speed and calculations of each process' waiting and turnaround times are auto-generated while the execution is in progress. The student who asked me to create the program said that CPU scheduling is part of the Operating Systems subject discussion... thinks so... :-)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


i have error in LINE 41

how can I run the file?

hay can u please tell me on which software can i run this code? visual studio or visual basic? and is it a complete user interface just like u shown above its output? is it based on GUI design?

Sir can i have the source code???

how about the earliest deadline first?? do you have a code for it?

how to run this code ?
what do you use ?

You are welcome...

Lao Tzu - “Give a man a fish and you feed him for a day. Teach a man how to fish and you feed him for a lifetime.”


Hey thnx for the code..

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.