faq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
faq [2021/03/17 14:24] – jxu | faq [2021/03/21 02: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**//, | + | **Answer to Question 20**: As a first step, you may try to write the code only for a //**very basic and simple Java program**//, |
* Each process //**only executes once on the CPU**// before terminating; | * Each process //**only executes once on the CPU**// before terminating; | ||
Line 198: | Line 198: | ||
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. | ||
- | **Once you have got the code for the very basic and simple Java program described above working, then try to gradually add additional features, in order of difficulty**, to the code. For example: | + | //**Once you have got the code for the very basic and simple Java program described above working, then try to gradually add additional features, in order of difficulty, to the code**//. For example: |
- First try to allow processes to have // | - First try to allow processes to have // | ||
- Then try using //**C2. Nonpreemptive Shortest-Job-First (SJF) Scheduling**// | - Then try using //**C2. Nonpreemptive Shortest-Job-First (SJF) Scheduling**// | ||
Line 204: | Line 204: | ||
- Then try using some of the // | - Then try using some of the // | ||
- Then try to allow each process to make //**one single request to perform I/O**// for some I/O Time on one single I/O device after completing its first CPU Computation Time, while for CPU Scheduling only use one of the // | - Then try to allow each process to make //**one single request to perform I/O**// for some I/O Time on one single I/O device after completing its first CPU Computation Time, while for CPU Scheduling only use one of the // | ||
- | - Then try to allow each process to make //**one single request to perform I/O**// for some I/O Time on one single I/O device after completing its first CPU Computation Time, while for CPU Scheduling | + | - Then try to allow each process to make //**one single request to perform I/O**// for some I/O Time on one single I/O device after completing its first CPU Computation Time, while for CPU Scheduling use some of the // |
- … | - … | ||
Line 217: | Line 217: | ||
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. | ||
+ | |||
+ | **Question 21**: For assignment 2, do we implement all the different schedulers mentioned in section C of the assignment document? Or do we pick just one of them to implement? | ||
+ | |||
+ | **Answer to Question 21**: Assignment 2 requires implementing ALL the different schedulers mentioned in section C of the assignment document. | ||
+ | |||
+ | **Question 22**: Does every group member have to submit the assignment 2 or can one person do it? | ||
+ | |||
+ | **Answer to Question 21**: Assignment 2 can be submitted by one member of each group. | ||
+ |
faq.txt · Last modified: 2021/04/26 22:20 by jxu