HOMEWORK PROBLEM 9X_2 INTRODUCTION TO Ada 586 PURPOSE: To gain some experience with Ada9X. This problem can be worked on the gnat compiler. (in June) END RESULT: A protected type declaration for the reader/writer problem, 17.8.1, that gives the writers priority. PROBLEM: Page 454, Barnes Programming in Ada, exercise 17.8.1(1) TURN IN: Printout of whatever you can capture. OBSERVE: gnat naming conventions for now, require the file name to be the compilation unit name with .ads for specs and .adb for bodies. This is just one first example of new tasking features added to Ada9X, there are more. METHOD: Read Barns book, section 17.8, pages 448-454 Compile with command gcc -c gnate gnatf xxx.adb (There is usually no need to compile specs that have bodies) Link with gnatbl -o xxx xxx.ali (having compiled non generic bodies first) READING: BARNES 17.8 Ada9X Reference Manual 9.4, 9.5, 9.7