This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CSE 422S (Fall 2009) Operating Systems Organization Homework 4 Reading: Gnu Libc Manual; Tanenbaum, Sections 2.3.1-2.3.3 Due: Mon, Oct. 5, 2009 Preview: Working on both Problems 2 and 3 should increase your understanding of pipelines. In Problem 2, you are given a line-scrambled program that would demonstrate pipes if it were unscrambled. The pipeline is formed by each new process forking its child to be the next process in the pipeline. You must unscramble the program. In Problem 3, you are asked to think about how to implement the fanout forking for creating a pipeline of commands. Problem 1 (0 Points) Familiarize yourself with the sections of The Gnu C Library Reference Manual that pertain to implementing the xssh shell. Problem 2 (6 Points) The course Web page contains the file npipe3-puzzle.c and its header file stdinc.h . At one time, the program solved the npipe problem described below but for the limited case of N = 3 processes (i.e., a pipeline of two pipes). But the student dropped the npipe3.c source code on the floor, and some lines got scrambled....
View Full Document
This document was uploaded on 11/13/2009.
- Spring '09
- Operating Systems