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:08] jxufaq [2010/11/04 06:31] (current) jxu
Line 33: Line 33:
 Could you please advise me on this issue. Could you please advise me on this issue.
  
-Answer to Question 4:+Answer to Question 3:
  
 There is nothing wrong with the pthread library on RED. There is nothing wrong with the pthread library on RED.
Line 54: Line 54:
 The following "gradualist" approach will minimize the chances of getting an unmanageable large number of compilation errors: The following "gradualist" approach will minimize the chances of getting an unmanageable large number of compilation errors:
  
-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 versions of your code so that you can revert back to a previous compilable 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.
  
  
Line 60: Line 60:
  
 Answer to Question 4: Yes. Answer to Question 4: Yes.
 +
 +**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/prodcons3.c”, and  “pxsem/prodcons4.c”, and have learned how to compile and execute these programs by following the instructions in the "README" file, you can use the programs “pxsem/prodcons3.c”, and  “pxsem/prodcons4.c”, as a template to write your own program for  Assignment 3.
faq.1288447735.txt.gz · Last modified: 2010/10/30 14:08 by jxu

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki