5570: Advanced Unix Programming
Lectures
Programming assignments
Quiz solutions
- Quiz 1:
- Quiz 2:
- Quiz 3:
- Quiz 4:
- Quiz 5:
- Quiz 6:
- Quiz 7:
- Quiz 8:
- Quiz 9:
- Quiz 10:
Lectures
Lecture 1: 26 Aug 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/lec1.ppt
- Reading assignments:
- Review C and material from COP 4610 and other courses.
- Read the syllabus. Read it several times, if necessary.
- Learn to use etags and compilations facilities in emacs.
- Write small programs and debug using a graphical debugger. Learn the purpose of each button in xxgdb (on quake) and ddd (on linprog).
- Try to figure out what a makefile does, by looking at the examples. We will discuss this further, next class.
- Examples:
- example1.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/example1.c
- makefile: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/makefile
- makefile1: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/makefile1
- myprog1.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/myprog1.c
- myprog2.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/myprog2.c
- myprog3.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/myprog3.c
- myprog.h: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec1/myprog.h
Lecture 2: 28 Aug 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/lec2.ppt
- Reading assignments:
- Learn to use etags and compilations facilities in emacs.
- Write small programs and debug using a graphical debugger. Learn the purpose of each button in xxgdb (on quake) and ddd (on linprog).
- Try to figure out what a makefile does, by looking at the examples.
- Examples:
- example1.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example1.c
- example2.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example2.c
- example3.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example3.c
- example3b.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example3b.c
- example3c.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example3c.c
- example3d.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/example3d.c
- makefile: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/makefile
- makefile1: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/makefile1
- makefile2: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/makefile2
- myheader1.h: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myheader1.h
- myheader2.h: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myheader2.h
- myprog1.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myprog1.c
- myprog2.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myprog2.c
- myprog3.c: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myprog3.c
- myprog.h: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec2/myprog.h
Lecture 3: 30 Aug 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec3/lec3.ppt
- Reading assignments:
- Learn to use makefiles.
- Take a look at standard C library functions, and practice some of them. For example, see if you can read "queries" from stdin, as required for assignment 1.
- Read the specifications for the
system
command (from The Open Group Base Specifications Issue 6
IEEE Std 1003.1-2001: http://www.opengroup.org/onlinepubs/007904975).
- Learn about macros and header files. How can you enable C++ programs to use your C functions?
- Practice the use of command line arguments.
- Examples:
- lect3.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec3/lect3.tar
- Assignment 1:
- http://www.cs.fsu.edu/~asriniva/courses/aup02/hws/hw1.html . Check that web page periodically for hints, clarifications, and changes.
Lecture 4: 4 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec4/lec4.ppt
- Reading assignments:
- Chapter 1 and 2 of APUE. Further details will be given in class.
- Examples:
- lect4.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec4/lect4.tar
Lecture 5: 6 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec5/lec5.ppt
- Reading assignments:
- Selected topics from chapters 1, 3, 4, and 5. Further details will be given in class. Please add the following to those mentioned on the slide: pages 214-215, and pages 77-88.
- Examples:
- lect5.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec5/lect5.tar
Lecture 6: 9 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec6/lec6.ppt
- Reading assignments:
- Selected topics from chapters 3, 4, and 5. Further details will be given in class. Please add the following to those mentioned on the slide: pages 214-215, and pages 77-88.
- Examples:
- lect6.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec6/lect6.tar
Lecture 7: 11 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec7/lec7.ppt
- Reading assignments:
- Selected topics from chapters 3, 5, 7 and 8. Details will be given in class, and are mentioned in the lecture slides.
- Examples:
- lect7.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec7/lect7.tar
Lecture 8: 13 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec8/lec8.ppt
- Reading assignments:
- Selected topics from chapters 7, 8, and 14. Details will be given in class, and are mentioned in the lecture slides.
- Examples:
- lect8.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec8/lect8.tar
Lecture 9: 16 Sep 2002
- Presentation:http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec9/lec9.ppt
- Reading assignments:
- Selected topics from chapters 10 and 14. Details will be given in class, and are mentioned in the lecture slides.
- Examples:
- lect9.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec9/lect9.tar
Lecture 10: 18 Sep 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec10/lec10.ppt
- Reading assignments:
- Selected topics from chapters 10. Details will be given in class, and are mentioned in the lecture slides.
- Examples:
- lect10.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec10/lect10.tar
Lecture 11: 20 Sep 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec11/lec11.ppt
- Reading assignments:
- Selected topics from chapters 10. Details will be given in class, and are mentioned in the lecture slides.
- Examples:
- lect11.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec11/lect11.tar
Lecture 12: 23 Sep 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec12/lec12.ppt
- Examples:
- lect11.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec11/lect11.tar (Same as last time.)
- Midterm 1: Monday, 30 Sep 2002.
Lecture 13: 25 Sep 2002
- Presentation: None -- we will discuss HW 2.
Lecture 14: 27 Sep 2002
Lecture 15: 30 Sep 2002
Lecture 16: 2 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec16/lec16.ppt
- Examples: None.
Lecture 17: 7 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec17/lec17.ppt
- Examples:
- lect17.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec17/lect17.tar
Lecture 18: 9 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec18/lec18.ppt
- Examples:
- lect18.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec18/lect18.tar
Lecture 19: 11 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec19/lec19.ppt
- Examples:
- lect19.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec19/lect19.tar
Lecture 20: 14 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec20/lec20.ppt
- Examples:
- lect19.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec19/lect19.tar (Same as last time)
Lecture 21: 16 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec21/lec21.ppt
- Examples:
- lect21.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec21/lect21.tar
Lecture 22: 18 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec22/lec22.ppt
- Examples:
- lect22.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec22/lect22.tar
Lecture 23: 21 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec23/lec23.ppt
- Examples:
- lect23.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec23/lect23.tar
- Midterm 2: Monday, 28 Oct 2002.
Lecture 24: 23 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec24/lec24.ppt
- Examples:
- lect24.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec24/lect24.tar
Lecture 25: 25 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec25/lec25.ppt
- Examples:
- lect25.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec25/lect25.tar
- Midterm review http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/midterm2-review.html
Lecture 26: 28 Oct 2002
Lecture 27: 30 Oct 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec27/lec27.ppt
- Examples:
- lect27.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec27/lect27.tar
- Midterm 2 "extra points": 20 Nov 2002.
Lecture 28: 1 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec28/lec28.ppt
- Examples:
- lect28.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec28/lect28.tar
Lecture 29: 4 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec29/lec29.ppt
- Examples:
- lect29.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec29/lect29.tar
Lecture 30: 6 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec30/lec30.ppt
- Examples:
- lect30.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec30/lect30.tar
Lecture 31: 8 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec31/lec31.ppt
- Examples:
- lect31.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec31/lect31.tar
Lecture 32: 13 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec32/lec32.ppt
- Examples:
- lect32.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec32/lect32.tar
Lecture 33: 18 Nov 2002
Lecture 34: 20 Nov 2002
- Midterm 2 -- extra points test
Lecture 35: 22 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec35/lec35.ppt
- Examples:
- lect35.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec35/lect35.tar
Lecture 36: 25 Nov 2002
- Discussion of signals in a multi-threaded program.
- This material is included in the finals.
Lecture 37: 27 Nov 2002
- Presentation: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec37/lec37.ppt
- Examples:
- lect37.tar: http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/lec37/lect37.tar
Lecture 38: 2 Dec 2002
Lecture 39: 4 Dec 2002
Lecture 40: 6 Dec 2002
- Project demos.
- Finals review http://www.cs.fsu.edu/~asriniva/courses/aup02/lectures/final-review.html
Last modified: 5 Dec 2002