Thursday 27 April 2017

Computer Graphics- 22. First Come First Serve Using OpenGL

FIRST COME FIRST SERVE ALGORITHM USING OpenGL


IT IS A COMPUTER GRAPHICS PROJECT MADE USING VISUAL STUDIO. IN THIS PROJECT IT SHOWS ABOUT FIRST COME FIRST SERVE.

Programming in Visual C++ Using OpenGL, Introduces the three-dimensional computer graphics with OpenGL.

In this post I am going to show the OpenGL code on FIRST COME FIRST SERVE and the implementation and demonstration of FIRST COME FIRST SERVE using the computer graphics and OpenGL API.

First Come First Serve Algorithm is OS based Computer graphics Project. This Project as name suggest demonstrate the working of First Come First Serve Algorithm or FCFS Algorithm.

About First Come First Serve Algorithm

The first come first serve (fcfs) algorithm is one of the scheduling algorithms for Process in Operating System. It has the following algorithm - 
  • In FCFS the process is executed on first come, first serve basis.
  • This algorithm is easy to learn, understand and implement.
  • The performance of this scheduling algorithm is poor as average wait time is high.
Terminology

Arrival Time : Time of Arrival for Process.
Execute Time :  Time taken for execution. 
Waiting Time : Time to wait for process it’s execution.
Average Wait Time : Total waiting time/No of Processes.

Instruction to execute Program

To execute this program - run the program with CTR+F5(in windows). First page will have instruction written on it. Press E or e to run the computer graphics project with default values. To run with your own values, give the inputs. Like in our case - press 4 first to give no of process. Then input 2, 3, 6, 7 for arrival time. Next input the execution time 2, 4, 5, 5. 

We have wait times for each as in the table  -
ProcessWait TimeExecution Time
102
214
325
465
Average Wait time = 0+1+2+6/4=9/4=2.25

You easily understand and demonstrate the concept in OS - First Come First Serve Algorithm. With learning from this project do your own the other scheduling algorithms projects on OpenGL.

All these objects are designed with simple OpenGL graphics objects. Do buy the project and I think you will like this project as well put your comment and let us know what more need to be added in this. Also help by contributing your projects either modified or new, we are going to publish your project on this blog with your name. It is a humble request as I single can't help student reach that much of projects.

""Type your email-id in the comment box and pay INR 400 on 
1). Paytm no. 7795746605   or
2). Paypal id:- paypal.me/abhishekabhi/400inr
for code & send payment details to solutionsbyabhi@gmail.com""

Please Hit the like button and subscribe the channel (subscription is FREE OF COST) and you will get new video notification next time.

2 comments: