faq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq [2009/05/13 00:40] – 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? |
Answer to Question 1: | Answer to Question 1: | ||
- | In Section G, Note, of the Assignment 2 description document, it is stated | + | Please note that the requirements specified in section A. Description of the Problem, are the minimum requirements that must be satisfied by your program. Obviously, there are many other possible details |
- | " | + | Any decision to add any particular additional functionality X to your program should be guided by the principles above. |
- | + | ||
- | Any decision to add any particular additional functionality X to your program should be guided by the principles | + | |
The marker will judge whether you have made appropriate design and implementation choices or not in adding the particular additional functionality X; and whether your justification of what you have chosen to do and the particular ways you have chosen to do it are valid or not. | The marker will judge whether you have made appropriate design and implementation choices or not in adding the particular additional functionality X; and whether your justification of what you have chosen to do and the particular ways you have chosen to do it are valid or not. | ||
- | Question 2: How can I learn about makefiles? | + | **Question 2**: How can I learn about makefiles? |
Answer to Question 2: Just do a Google search using the key words " | Answer to Question 2: Just do a Google search using the key words " | ||
+ | |||
- a brief introduction to some of the most basic features of makefiles: | - a brief introduction to some of the most basic features of makefiles: | ||
http:// | http:// | ||
Line 27: | Line 26: | ||
- a complete reference manual on the gnu make utility: | - a complete reference manual on the gnu make utility: | ||
http:// | http:// | ||
+ | |||
+ | **Question 3**: For cse3221 assignment 2, I am having trouble compiling the code of my program. The errors that I get are: 1. ... 2. ... 3. ... ... | ||
+ | This makes me suspect that there is something wrong with the < | ||
+ | Could you please advise me on this issue. | ||
+ | |||
+ | Answer to Question 3: | ||
+ | |||
+ | There is nothing wrong with the pthread library on RED. | ||
+ | The best and easiest way to do the assignment, is to do the following: | ||
+ | |||
+ | 1. You may start by trying to read and understand the program | ||
+ | " | ||
+ | Threads" | ||
+ | 2. The program " | ||
+ | be downloaded from the directory / | ||
+ | Try to compile and execute this program by following the | ||
+ | instructions in the " | ||
+ | 3. The book " | ||
+ | been put on reserve in Steacie Library." | ||
+ | |||
+ | Once you have studied and understood the program " | ||
+ | |||
+ | The following " | ||
+ | |||
+ | Start with the program " | ||
+ | |||
+ | **Question 4**: For Assignment 2, are we allowed to make modifications to the main() procedure and the alarm_thread function? | ||
+ | |||
+ | Answer to Question 4: | ||
+ | |||
+ | 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 5: | ||
+ | |||
+ | 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, | ||
+ | |||
+ | |||
+ |
faq.1242175247.txt.gz · Last modified: 2009/05/13 00:40 by jxu