Reference no: EM131437519
Programming: Java or C++ Assignment
Implement the following scheduling algorithms and report the average waiting time for all these cases.
1. First Come First Serve
2. Shortest Job First
3. Priority Scheduling (preemptive and lower the number higher the priority)
4. Round Robin Scheduling (you should consider 3 seconds as time quantum)
The input of the program is as follows:
The first line indicated how many processes are there. Then each line (for each process) will have three information (arrival time, burst time and priority) separated by a space.
Example:
4
0 23 3
0 13 2
1 12 1
2 17 4
Here there are four processes to be scheduled. Each line represents information regarding each process. For example third process (third row) arrived at time 1, need 12 seconds to process (burst time) and its priority is 1 (highest among all).
IMPORTANT NOTES:
a. At some point you might need to sort (for example first come first serve), please don't use system library for the sorting. Please implement it by yourself and implement any of these three sorting algorithm: quick sort, heap sort or merge sort.
b. You might need queue to implement for the efficient data structure and perform some operations on that. Please don't use any library for that. Please implement queue by yourself.
c. Please use either JAVA or C++ for the implementation.
Manage all of the elements of the project
: A project is comprised of many elements and includes a variety of tools to manage all of the elements of the project. Which of the following is best describes the customers' expectations in terms of cost, time, and scope?
|
Describe the overall approach and goal of each model
: Research current change models used by organizations to facilitate change. Compare and contrast two models. Describe the overall approach and goal of each model. What are the similarities and differences?
|
Why do substance abusers have trouble participating
: What are the curative factors of group therapy for substance use-disorder clients? Offer several examples and construct a list of factors, ideally in order of priority.Should abstinence or harm reduction be the goal of group treatment for alcoholis..
|
Explain the location advantages of fdi
: Explain the location advantages of FDI. Discuss the value of acquiring and neutralizing location advantages with an example that highlights how a location advantage does not necessarily overlap a country-level advantage.
|
Implement the shortest job first scheduling algorithms
: COSC 3406 (Programming: Java or C++) Assignment. Implement the following scheduling algorithms and report the average waiting time for all these cases. First Come First Serve and Shortest Job First
|
Government agencies are usually difficult to navigate
: Government agencies are usually difficult to navigate, even for people who work there because of all the red tape. However if some has access and really understands the system, the process can be a breeze. This fraud took six years to be uncovered, w..
|
Demonstrate an understanding
: Purpose: Students will use the tools and apply concepts learned in this and previous business courses to demonstrate an understanding of how organizations develop and manage strategies to establish, safeguard and sustain its position in a competit..
|
What was the goal of the statistical analysis in this study
: Introduce the study by providing a brief summary of the focus and the research question(s) or purpose for the study. ("The focus of this study was... There were ___ research questions: .... No research questions were stated, but the authors indic..
|
Public examples of the presence of contradictions
: Provide two personal or public examples of the presence of contradictions and any warning signs that you observed. In which cases was there a confirmation that some form of deceit had occurred?
|