Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ile somewhat outdated, remains a valuable and highly readable description of how to work with processes and signals from application programs. Bovet and Cesati give a wonderfully clear description of the Linux kernel, including details of the process and signal implementations. Homework Problems Homework Problem 8.8 [Category 1]: In this chapter, we have introduced some functions with unusual call and return behaviors: setjmp, longjmp, execve, and fork. Match each function with one of the following behaviors: A. Called once, returns twice. B. Called once, never returns. C. Called once, returns one or more times. Homework Problem 8.9 [Category 1]: What is one possible output of the following program? code/ecf/forkprob3.c 1 2 3 4 5 6 7 8 9 10 11 12 #include "csapp.h" int main() { int x = 3; if (Fork() != 0) printf("x=%d\n", ++x); printf("x=%d\n", --x); exit(0); } code/ecf/forkprob3.c Homework Problem 8.10 [Category 1]: How many “hello” output lines does this program print? code/ecf/forkprob5.c 8.8. SUMMARY 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online