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 [2009/10/14 07:01] jxufaq [2009/10/14 08:54] (current) jxu
Line 90: Line 90:
 The fastest and easiest way for you to learn how to do the The fastest and easiest way for you to learn how to do the
 assignment, and to learn about thread programming, is to follow the advice in the assignment handout, copied below: assignment, and to learn about thread programming, is to follow the advice in the assignment handout, copied below:
 +In Section F, Hints, of the Assignment 2 description document, it is stated that,
 ------------------------------------------------------------ ------------------------------------------------------------
-FHints+"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 Threads" by David R. Butenhof.
  
-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 Threads" by David R. Butenhof. 
 2. The program "alarm_mutex.c" and the file "errors.h" and "README" can be downloaded from the directory /cs/course/3221/assign2. Try to compile and execute this program by following the instructions in the "README" file. 2. The program "alarm_mutex.c" and the file "errors.h" and "README" can be downloaded from the directory /cs/course/3221/assign2. Try to compile and execute this program by following the instructions in the "README" file.
-3. The book "Programming with POSIX Threads" by David R. Butenhof has been put on reserve in Steacie Library.+ 
 +3. The book "Programming with POSIX Threads" by David R. Butenhof has been put on reserve in Steacie Library."
 --------------------------------------------------------- ---------------------------------------------------------
  
Line 109: Line 109:
 omitted, or can there be two tabs between Airline and Flight? omitted, or can there be two tabs between Airline and Flight?
  
-Answer to Question 6: The input format should be EXACTLY as specified in the assignment, which is already clearly specified: "For examples of the formats of the above data, see the “Greater Toronto Airports Authority – Live Flight Information” webpage: +Answer to Question 6: The input format should be EXACTLY as specified in the assignment, which is already clearly specified in Section A, Description of the Problem, Item 1, of the Assignment 2 description document 
-http://www.gtaa.com/en/travellers/search_results/?info=departures&all=true&submitting=true" It is up to you to figure out how to check the format of any user input, and how to detect possible errors in any user input.+ 
 +"... The Airline, Flight, Departure_To, Scheduled_Time, Status, Revised_Time, and Terminal data are separated by one or more Tab characters. For examples of the formats of the above data, see the “Greater Toronto Airports Authority – Live Flight Information” webpage: 
 +http://www.gtaa.com/en/travellers/search_results/?info=departures&all=true&submitting=true"  
 + 
 +It is up to you to figure out how to check the format of any user input, and how to detect possible errors in any user input.
  
  
faq.1255503702.txt.gz · Last modified: 2009/10/14 07:01 by jxu