Computer Science 330
Operating Systems
Spring 2012, Siena College
Lecture 3: Processes and Interprocess Communication
Date: Tuesday, January 24, 2012
Agenda
- Announcements
- log into and change your passwords on the FreeBSD accounts if
you haven't yet done so
- First lab programming continues
- Processes
- Process creation, fork() system call
- Process scheduling queues
- Interprocess communication
- motivation
- shared memory vs. message passing
- IPC mechanisms
Lecture Assignment 3
Due at the start of class, Thursday, January 26.
The readings for next class are SG&G Chapter 4.
Please submit answers to these questions
either as a hard copy (typeset or handwritten are OK) or by email to
jteresco AT siena.edu by the start of class. Please use a clear subject line
when submitting by email (e.g., CS 330 Lecture
Assignment 3, Joe Student). We will discuss these
questions at the start of class, so no late submissions are
accepted.
- SG&G Exercise 3.7, p. 134 (3 points)
- SG&G Exercise 3.9, p. 134 (2 points)
You need not submit answers to these
questions, but you will have a chance to ask questions about them at
the start of class.
- SG&G Practice Exercise 3.4, p. 133.
Examples
- forking
- forkbomb
- FreeBSD fork code: /usr/src/sys/kern/kern_fork.c
- FreeBSD run/ready queues: /usr/src/sys/kern/kern_switch.c
- FreeBSD context switch: /usr/src/sys/i386/i386/swtch.s