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
faq [2010/10/30 14:12] jxufaq [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 10: Line 10:
 Answer to Question 1:  Answer to Question 1: 
  
-In Section GNote, of the Assignment 2 description document, it is stated that, +Please note that the requirements specified in section A. Description of the Problemare the minimum requirements that must be satisfied by your program. Obviouslythere are many other possible details of the program that have been left unspecified. It is your responsibility to make appropriate design and implementation choices concerning the unspecified details of the  programand justify those decisions."
  
-"Please note that the requirements specified in section A. Description of the Problem  above, are the minimum requirements that must be satisfied by your program. Obviously, there are many other possible details of the AUCTION program that have been left unspecified. It is your responsibility to make appropriate design and implementation choices concerning the unspecified details of the AUCTION program, and justify those decisions in your report." +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 in Section G, Note, of the Assignment 2 description document above.+
  
 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.
Line 36: Line 34:
  
 There is nothing wrong with the pthread library on RED. There is nothing wrong with the pthread library on RED.
-The best and easiest way to do the assignment, is to follow the advice +The best and easiest way to do the assignment, is to do the following:
-in the assignment 2 description document:+
  
-   "F. Hints 
    1. You may start by trying to read and understand the program    1. You may start by trying to read and understand the program
       "alarm_mutex.c" in pages 52-58 of the book "Programming with POSIX       "alarm_mutex.c" in pages 52-58 of the book "Programming with POSIX
Line 55: Line 51:
  
 Start with the program "alarm_mutex.c"; each time make just a few changes to make it closer to satisfying the requirements of assignment 2; each time after making just a few changes, try to compile it and run it and make sure that the new version of your code is at least compilable and is at least executable. Always save several previous compilable and executable versions of your code so that you can revert back to a previous compilable and executable version of your code if you experience difficulty compiling and executing the most recent version of your code and/or find it difficult to determine what is possibly wrong with the most recent version of your code. Start with the program "alarm_mutex.c"; each time make just a few changes to make it closer to satisfying the requirements of assignment 2; each time after making just a few changes, try to compile it and run it and make sure that the new version of your code is at least compilable and is at least executable. Always save several previous compilable and executable versions of your code so that you can revert back to a previous compilable and executable version of your code if you experience difficulty compiling and executing the most recent version of your code and/or find it difficult to determine what is possibly wrong with the most recent version of your code.
 +
 +**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, it states that,
 +
 +***********************************************************
 +"A3. You are required to make the following changes to the program
 +"alarm_mutex.c" to produce a program named "My_Alarm.c".
 +
 +In your program "My_Alarm.c", after the alarm_thread has retrieved each
 +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
 +"alarm_mutex.c", the alarm_thread will immediately create a new thread,
 +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, it clearly mentions "alarm_list" more than once, so clearly, using the "alarm_list" in the original "alarm_mutex.c" program in the way that is specified in the assignment description above is an important component of the assignment requirements. So the answer is: in your program "My_Alarm.c", you MUST use the "alarm list" in the way that is specified in the assignment description above.
  
  
-**Question 4**: For Assignment 3, can I include the errors.h file that was used in Assignment 2? 
  
-Answer to Question 4: Yes. 
faq.1288447928.txt.gz · Last modified: 2010/10/30 14:12 by jxu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki