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:23] jxu
Line 178: Line 178:
 **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 194: Line 194:
   - 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.
faq.txt · Last modified: 2021/04/26 22:20 by jxu