faq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq [2013/11/01 16:49] – jxu | faq [2018/04/03 15:09] (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 58: | Line 58: | ||
You are allowed to modify the main() procedure and the alarm_thread in any way that meets the assignment requirements. | 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? | + | **Question 5**: We are start writing the code for assignment 2. One issue we found is the |
+ | code you give us has the problem when user input as following: | ||
- | Answer to Question 5: | + | alarm> 10 hello |
- | In the assignment description, | + | alarm> 5 world |
- | *********************************************************** | + | alarm> (10) hello |
- | "A3. You are required to make the following changes to the program | + | |
- | " | + | |
- | In your program " | + | (5) world |
- | 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, | + | The message |
+ | set before | ||
+ | used condition mechanism could solve this problem. Should we implement | ||
+ | assignment | ||
+ | code you gave us? | ||
- | **Question | + | Answer to Question |
- | Answer | + | What do you mean by " |
+ | Assignment 2 never asked you to write assignment 2 "based on" ANY code. | ||
+ | The sample code was only provided for the purpose of illustrating some of the concepts discussed in the book related to POSIX Threads. | ||
+ | No one has ever said that the sample code should be used or can be used to satisfy the requirements of assignment 2. | ||
+ | **Question 6**: Some members of my assignment group are doing less work / making less | ||
+ | effort / contributing less. Is this a valid reason for not handing in the assignment before the due date? | ||
+ | Answer to Question 6: | ||
+ | |||
+ | Unfortunately a claim that some members of an assignment group | ||
+ | are doing less work / making less | ||
+ | effort / contributing less than some other members of the assignment | ||
+ | group, is NOT a valid reason for not handing in | ||
+ | an assignment on or before the assignment due date. | ||
+ | |||
+ | If any member of any assignment group wishes to receive any credit | ||
+ | for any assignment, | ||
+ | that assignment group would need to hand in the assignment | ||
+ | on or before the assignment due date. |
faq.1383324554.txt.gz · Last modified: 2013/11/01 16:49 by jxu