User Tools

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
faq [2021/03/17 14:17] jxufaq [2021/03/17 14:26] jxu
Line 176: Line 176:
 **Question 20**: Because my group started working on Assignment 2 rather late, now it looks almost certain that we won’t be able to finish designing, and implementing any working Java program that is able to compute the average waiting times and average turnaround times for any given workload using all of the six scheduling algorithms as specified in Assignment 2. Yet we don’t want to completely give up on Assignment 2. Can you give us some advice on what we might consider doing for the programming part of Assignment 2 to at least get something done for the programming part, taking into consideration that we only have a few days left before the deadline to work on the assignment?   **Question 20**: Because my group started working on Assignment 2 rather late, now it looks almost certain that we won’t be able to finish designing, and implementing any working Java program that is able to compute the average waiting times and average turnaround times for any given workload using all of the six scheduling algorithms as specified in Assignment 2. Yet we don’t want to completely give up on Assignment 2. Can you give us some advice on what we might consider doing for the programming part of Assignment 2 to at least get something done for the programming part, taking into consideration that we only have a few days left before the deadline to work on the assignment?  
  
-**Answer to Question 20**: As a first step, you may try to write the code only for a //**very basic and simple Java program**//, which only needs to handle the following:+**Answer to Question 20**: As a first step, you may try to write the code only for a //**very basic and simple Java program**//, which only needs to handle the following:
  
-   Each process //**only executes once on the CPU**// before terminating; +   Each process //**only executes once on the CPU**// before terminating; 
-   Each process //**never does any I/O**// on any I/O device; +   Each process //**never does any I/O**// on any I/O device; 
-   All processes have the //**same single CPU Computation Time**//; +   All processes have the //**same single CPU Computation Time**//; 
-   Only the simplest //**C1. Nonpreemptive First-Come, First-Served (FCFS) CPU Scheduling**// Algorithm is used.+   Only the simplest //**C1. Nonpreemptive First-Come, First-Served (FCFS) CPU Scheduling**// Algorithm is used.
  
 Note that in this very basic and simple system: Note that in this very basic and simple system:
Line 191: Line 191:
    
 Write the code so that the program allows the user to enter as input parameters the following: Write the code so that the program allows the user to enter as input parameters the following:
-  the number of processes;  +  the number of processes;  
-  the Arrival Time of each process; +  the Arrival Time of each process; 
-  the CPU Computation Time for each process;+  the CPU Computation Time for each process; 
  
 Then try to write code which computes the Average Waiting Times and Average Turnaround Times for any set of user input parameters above. Then try to write code which computes the Average Waiting Times and Average Turnaround Times for any set of user input parameters above.
Line 209: Line 210:
  
 When adding each additional feature, write the code so that the program allows the user to enter as input parameters the following: When adding each additional feature, write the code so that the program allows the user to enter as input parameters the following:
-  the number of processes; +  the number of processes; 
-  the Arrival Time of each process; +  the Arrival Time of each process; 
-  the Priority of each process; +  the Priority of each process; 
-  the Sequence of CPU Computation Time and I/O Time Requirements for each process;+  the Sequence of CPU Computation Time and I/O Time Requirements for each process;
  
 When adding each additional feature, write code which computes the Average Waiting Times and Average Turnaround Times for When adding each additional feature, write code which computes the Average Waiting Times and Average Turnaround Times for
 any set of user input parameters above.    any set of user input parameters above.   
faq.txt · Last modified: 2021/04/26 22:20 by jxu