Week8 Class 1 - Tues March 24 Announcements: Syllabus reposted; hw2 will be posted tonight or soon, and will be done partially in class Default grade conversion on canvas corrected Grammar today is: A12.3 Macro Definition and Expansion, p229-231 hardcopy K&R, p207-209 softcopy A8.9 Typedef, p221 hardcopy K&R, p199 softcopy Lecture is: Hamming code Hamming code will be needed for proj3 Grammar Page is: NonSolution Code from page 442 in Tanenbaum and Bos 1. Put name and date on top of the printed page 2. Read the four pages from Tanenbaum and Bos on the website: pp441-444. 3. Read the three pages from K&R for A12.3 (pages given above for hardcopy and softcopy) Answer these 4 Questions on the back: 4. Explain the define: #define N 5 5. Explain the lines of code where N appears 6. Explain the line of code in Solution (Fig 6-5) that is: typedef int semaphore; 7. Why are the two lines of take_fork reduced to one line of take_forks in Solution (page 443) 8. Why does the Solution (Fig 6-5) need s[N] + 1 semaphores?