The UNIX programming mini course
The goal of this lab. mini-course is to provide an introduction to the UNIX operating system,
and to programming in C under UNIX. In particular, we will learn how to spawn concurrent
processes, how to read/write to files, and how to implement process communication using
pipes and signals.
Location: Lecture Hall building, room 142, 143 (1st floor) and 45 (ground floor)
Time: 23-24.07, 14:00-17.15 (with break from 15:30 to 15:45)
Groups: G1, G2, G3
Instructors: G1,45 - Piotr Sasak, G2,143 - Pawel Wojciechowski, G3,142 - Marek Libuda
Printed materials to the complete lab. course "Distributed Computing Systems" in PDF and MS Word; see chapters 1-5.
Download a tar file with example C programs.
1. UNIX in the nutshell
A brief introduction and exercises, in
PDF and
MS Word
2. Processes
A brief introduction and exercises, in
PDF and
MS Word
fork_begin.c
fork_child_and_parent.c
fork_orphan.c
fork_pid.c
fork_wait.c
fork_wait_more.c
fork_zombie.c
fork_status.c
execl.c
execv.c
3. Files
A brief introduction and exercises, in
PDF and
MS Word
open_read_write.c
lseek.c
4. Pipes
A brief introduction and exercises, in
PDF and
MS Word
pipes.c
FIFO_client.c and
FIFO_server.c
5. Signals
signal_func.c
Last modified: Fri Oct 19 20:13:34 CEST 2007