CS 375 ­ UNIX System Programming Fall 2015 ­ Syllabus

advertisement
CS 375 ­ UNIX System Programming
Fall 2015 ­ Syllabus
Instructor
Dr. Deborah Hwang KC­264, 488­2193, hwang@evansville.edu Home page: http://csserver.evansville.edu/~hwang
Office Hours: See instructor's home page.
Course Home Page
Handouts will be available only at the course home page (http://csserver.evansville.edu/~hwang/f15­
courses/cs375.html). Although announcements regarding handouts and assignments will be made in class, it is your responsibility to consult the course home page on a regular basis. Grades will be posted to Blackboard (http://bblearn.evansville.edu).
Catalog Description
Coverage of UNIX software development and UNIX administration. Includes discussion of common shells and scripting languages, X Windows and interprocess communication.
Objectives and Outcomes
The main objective of this course is to become proficient in the use of system programming tools and techniques used in the UNIX operating system. Specific outcomes for this course include:
●
●
●
●
●
●
●
●
●
●
●
Students will be able to write C/C++ programs using UNIX systems for file I/O.
Students will have a basic understanding of UNIX filesystem security features (file ownership and permissions) and file types (regular, directory, special, and links).
Students will be able to use use essential UNIX tools effectively from the command line and/or in scripts. These tools include: grep and find.
Students will be able to write UNIX shell scripts employing redirection, pipes, loops, selection and iteration statements, argument passing, command substitution, and HERE documents.
Students will be able to write C/C++ routines that use the Curses library for terminal I/O.*
Students will be able to write programs in a scripting language such as PHP.
Students will be able to write graphical applications using a C++ toolkit.
Students will be able to create new processes using fork and exec.
Students will be able to send signals to processes and be able to wait and handle signals.
Students will have a basic understanding of TCP/IP networks and protocols.
Students will be able write programs that communicate via standard UNIX interprocess communication methods: pipes, sockets, semaphores, message queues and shared memory.
Prerequisites: CS 215
Required Textbooks
Neil Matthew and Richard Stones, Beginning Linux Programming, 4ed, Wrox, 2008, ISBN 978­0­470­14762­7.
W. Richard Stevens and Stephen A. Rago, Advanced Programming in the UNIX Enviroment, 3ed, Addison­
Wesley, 2013, ISBN 978­0­321­63773­4
08/26/2015
Page 1 of 4
D. Hwang
Links to supplemental on­line references at: http://csserver.evansville.edu/~hwang/f15­courses/cs375/references.html Daily Requirements
Assigned daily reading. Written in­class and homework assignments as needed.
Programming Projects
There will be 7­9 programming projects of 1­2 weeks in duration. In addition, there is a final programming project that is due at 10am on Tuesday, December 15 (the end of the scheduled final exam period for this class).
Evaluation
There are no exams in the class. Final grades will be based on project work only using the following weighted distribution:
75%
15%
10%
Programming projects (weighted as indicated on the assignment)
Final programming project
In­class and homework assignments (weighted as indicated on the assignment)
Late Homework, Late Projects
All assignments (in­class, homework, projects) are due at the instructor's office and/or electronically as appropriate by 4:30pm on the date specified unless otherwise noted. Any assignments arriving after 4:30pm are considered late. The following automatic late penalties will be applied:
10%
20%
30%
if handed in by 4:30pm, one day late
if handed in by 4:30pm, two days late
if handed in by 4:30pm, three days late
Unexcused late work will not be accepted for credit after three days after the due date without prior arrangements.
For the purpose of counting days, Friday 4:30pm to Monday 4:30pm is considered one day. Please note that the purpose of the automatic late extension is to allow students leeway when needed. It is usually better to hand in something late and completed than on­time and incorrect. However, chronically handing in late submissions will lower your final grade.
Valid excuses for missing exams, missing classes, and handing assignments in late include illness, family emergencies, religious observances, official UE events such as varsity games and concerts, etc. They do not include (most) work conflicts, studying for other classes, leaving a day early or staying home an extra day over a weekend or holiday, etc. In general, an excused absence is one caused by circumstances beyond your control.
The instructor will rely on your integrity for getting work excused. If you have a valid excuse, send an email to the instructor explaining the excuse. For religious observances and official UE events, you must inform the instructor that you will be absent before the absence occurs, otherwise it will be considered an unexcused absence. The instructor reserves the right to ask for official documentation in cases of chronic absences.
Excused work must be made up within one calendar week from the original due date for full credit. Late excused work will not be accepted Exceptions will be made for serious or prolonged illness, or other serious problems. Please note: It is your responsibility to take care of missed or late work.
08/26/2015
Page 2 of 4
D. Hwang
Attendance Policy
Attendance is important and expected. Attendance records will be maintained in accordance with Federal Law, but will not be used in the determination of grades, except to the extent it affects the in­class exercise portion of your grade and in borderline cases. However, the instructor reserves the right to reduce a final grade in this course for excessive absences. Students will be warned prior to such action. Students are responsible for all material covered in class. If you miss a class, find out what was covered from another student. You are responsible for checking the course home page for new assignments even if you miss class.
Honor Code
All students are expected to adhere to the University's Honor Code regarding receiving and giving assistance. The following specific guidelines are in force for this course.
●
Written in­class and homework exercises are for you to gain experience and practice. You may collaborate with your classmates, but each student should submit a solution in his/her own words that reflect his/her understanding of the solution. Ultimately you will be required to demonstrate your proficiency of the material on exams. Therefore, it is highly recommended that you attempt all homework problems on your own before finding a solution from another source.
●
Programming projects are to be your own work unless otherwise noted. Discussing the meaning and general solution techniques of an assignment with other students is permitted. For example, discussing “How is this assignment similar or different from problems presented in the text or in lecture?” is acceptable.
Asking another person for assistance on specific items in your own project also is permitted, but you may not observe another person’s code in its entirety for the purposes of studying or copying it, with or without that student's permission. For example, asking, “What does this compiler error mean?” or “Do I have the correct PHP syntax here?” is acceptable. Whereas asking “Can I see how you coded your server sockets?” is not acceptable.
In particular, since UNIX systems tend to be open by default, it is absolutely forbidden to “rummage” around the csserver file system looking at anyone else's work even if they have not set the file permissions to prevent such observation. For those that would rather not rely on the integrity of others, it is suggested that most work for this class be put into a subdirectory that has its permissions set to owner only. Unfortunately, this generally is not possible with web pages. Giving or receiving unauthorized aid on a programming project will result in a grade of 0 for the first offense. Any subsequent violations will result in a grade of F for the course and possibly formal disciplinary action.
If there is any doubt as to whether assistance is acceptable, consult the instructor.
Course schedule
Here is a tentative schedule showing the daily reading assignments for this term. Adjustments will be made as needed. The "acronyms" appearing below correspond to reference material. BLP is the Beginning Linux Programming book and APUE is the Advanced Programming in the UNIX Enviroment book (the course texts). All other references are on­line and may found through links on the course web site.
08/26/2015
Page 3 of 4
D. Hwang
Tuesday
Week of
Thursday
08/24
UCRE, UOVE: History of UNIX
BLP Ch 1: Getting Started
08/31
BLP Ch 1: Getting Started
UITL Ch 2, 3: Basic Commands
BABS, BLP Ch 2: Shell Programming
09/07
BABS, BLP Ch 2: Shell Programming
BLP Ch 3: Working with files
APUE Ch 3: File I/O
09/14
BLP Ch 3: Working with files
APUE Ch 4: Files and Directories
BLP Ch 4: The UNIX Environment
09/21
BLP Ch 5: Terminal Programming
BLP Ch 6: Curses; APUE Ch 18: Terminal I/O
BLP Ch 6: Curses
APUE Ch 18: Terminal I/O
09/28
BLP Ch 7: Data Management (GDBM)
APUE Ch 20: Database Library
PINT, PZND, PW3S: Introduction to PHP
10/05
PINT, PZND, PW3S: Introduction to PHP
PINT, PZND, PW3S: Introduction to PHP
10/12
Fall Break
No class
BLP Ch 11: Processes (fork and exec)
APUE Ch 8: Process Control
10/19
BLP Ch 11: Signals and Signal Handling
APUE Ch 10: Signals
BLP Ch 12: POSIX Threads
APUE Ch 11: Threads
10/26
BLP Ch 12: POSIX Threads
APUE Ch 12: Thread Control
BLP Ch 13: Pipes
APUE Ch 15: Interprocess Communication
11/02
BLP Ch 14: Semaphores, Shared Memory
APUE Ch 15: Interprocess Communication
BLP Ch 14: Shared Memory, Message Queues
APUE Ch 15: Interprocess Communication
11/09
BLP Ch 15: Sockets
APUE Ch 16: Network IPC­Sockets
BLP Ch 15: Sockets
APUE Ch 16: Network IPC­Sockets
11/16
BLP Ch 15: Sockets
APUE Ch 17: Advanced IPC
BLP Ch16: Using GTK+
11/23
BLP Ch16: Using GTK+
Thanksgiving Break
No class
11/30
BLP Ch16: Using GTK+
BLP Ch16: Using GTK+
12/07
Final Project Workday
Finals Week
No class
There is no Final Exam for this course.
The Final Programming Project is due by 10am on Tuesday, December 15, 2015
(end of the final exam period scheduled for this class)
08/26/2015
Page 4 of 4
D. Hwang
Download