Week12-review - CSC209 Review http:/xkcd.com Final Exam How...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
CSC209 Review http://xkcd.com
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Final Exam • How to study – Look at previous exams for structure. – Play with example code provided. • Covers everything in the course • Closed book exam except… – Bring one 8.5x11 sheet of paper • double-sided (no magnifying glasses allowed) – The exam also contains an aid sheet with prototypes and shell info. • It will be published on the web site
Background image of page 2
Remainder • Check web page for office hours • Review session – When? • Thursday April 15 th or Friday April 16th • Please submit remark requests promptly. Please verify that posted marks are correct before the exam! http://xkcd.com
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CSC209: Software tools … • Unix – files and directories – permissions – utilities/commands • Shell – programming – quoting – wild cards – files
Background image of page 4
... and systems programming • C – basic syntax – functions – arrays – structs – strings – pointers (!!!) – function pointers – header files
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
…and more systems programming • System calls • Files • Processes (fork, exec) • Inter-process Communication – signals – pipes – sockets – select
Background image of page 6
What can you do? • Write a shell script to automate some tasks. – Run some tests multiple times • Write a program to run and monitor other programs – Kill them if they take too long • Write a program that splits tasks into multiple processes to take advantage of multiple cores. • Use a Makefile to build a large system
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What else? • Write a web server! • Write a shell! • But more importantly, you can begin to understand what happens when – A program “hangs” – A program “crashes” – Two programs share the same file – A process has terminated but is still in the process table.
Background image of page 8
Final exam • Topics – Shell – C • strings, pointers, structs, functions – Make – System calls • File I/O, fork, exec, pipe, signals, sockets
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Shell Concepts • Stdin, stdout, stderr • I/O redirection – csh – prog >& outfile – stdout and stderr to outfile – sh – prog > outfile 2>&1 – same • Job control • Pipes
Background image of page 10
Bourne shell programming • quoting – single quotes inhibit wildcard replacement, variable substitution and command substitution. – double quotes inhibit wildcard replacement only
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 08/02/2011.

Page1 / 33

Week12-review - CSC209 Review http:/xkcd.com Final Exam How...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online