Spring08_Homework1PartB

Spring08_Homework1PartB - Homework 1B ICS143 Spring 2008...

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

View Full Document Right Arrow Icon
Homework 1B ICS-143, Spring 2008 * Start Early. * Do not hesitate to ask questions. * If you make any assumptions, state them and be brief in your answers. * Hand in your homework to the distribution center before the following due date/time. Part B (65 points): Due 5/2/2008, 4:00pm Question 1 [Chapter 3, 4: 10 points] 1a.  To answer this question you need to do some research on system calls in  Unix.  A Fork system call in Unix is used to create a new process, consider the  following code: (10 points) a)  What will be the output of the program? b)  Change the code such that the output of the program will become only  one 'P'. Question 2[Chapter 5, 6: 55 points]
Background image of page 1

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

View Full Document Right Arrow Icon
2a.  Show the process flow graph of the following expressions (5 points) ('body'  represents the code the process would normally execute): a)  p1: body; V(mut_a); V(mut_b); V(mut_c); p2: P(mut_c); body;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

Spring08_Homework1PartB - Homework 1B ICS143 Spring 2008...

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

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