faq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq [2013/10/17 16:59] – jxu | faq [2013/12/02 19:56] (current) – jxu | ||
---|---|---|---|
Line 4: | Line 4: | ||
====== General ====== | ====== General ====== | ||
- | ====== FAQ about Assignment 2 and 3====== | + | ====== FAQ about Assignments |
**Question 1**: We are planning to add a certain additional functionality X to our program for the Assignment. Is adding the additional functionality X allowed? | **Question 1**: We are planning to add a certain additional functionality X to our program for the Assignment. Is adding the additional functionality X allowed? | ||
Line 52: | Line 52: | ||
Start with the program " | Start with the program " | ||
+ | **Question 4**: For Assignment 2, are we allowed to make modifications to the main() procedure and the alarm_thread function? | ||
- | **Question 4**: For Assignment 3, can I include the errors.h file that was used in Assignment 2? | + | Answer to Question 4: |
- | Answer to Question | + | You are allowed to modify the main() procedure and the alarm_thread in any way that meets the assignment requirements. |
+ | |||
+ | **Question 5**: For Assignment 2, are we allowed to NOT use the alarm_list? | ||
+ | |||
+ | Answer to Question | ||
+ | |||
+ | In the assignment description, | ||
+ | |||
+ | *********************************************************** | ||
+ | "A3. You are required to make the following changes to the program | ||
+ | " | ||
+ | |||
+ | In your program " | ||
+ | alarm request from the alarm_list, instead of waiting for the specified | ||
+ | number of n seconds and then printing out the alarm message as done in | ||
+ | " | ||
+ | and that new thread will print out the alarm message repeatedly, once | ||
+ | every n seconds; while the alarm_thread will be free to continue to | ||
+ | retrieve and process new alarm requests from the alarm_list." | ||
+ | ************************************************************** | ||
+ | |||
+ | In the assignment description, | ||
- | **Question 5**: For Assignment 3, can I use an approach similar to the approach suggested in the answer to Question 3 above? | ||
- | Answer to Question 4: | ||
- | Yes. You should follow the advice given in the "F. Hints" section in the Assignment 3 description document. Once you have studied and understood the programs “pxsem/ |
faq.1382029152.txt.gz · Last modified: 2013/10/17 16:59 by jxu