Assignment_2 - Student name: _ Assignment 2 Rules: a) You...

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

View Full Document Right Arrow Icon
Student name: _____________________ Assignment 2 Rules: a) You should clearly indicate the used commands b) You are request to work individually and respect the academic honesty as stated in the syllabus c) Syntax errors are not allowed, they only indicate that you did not test your program d) Your homework should be typed, printed and stapled, no hand written is allowed e) Due date is December 10, 2010. No late policy (if you are late you get a 0) _______________________________________________________________________ _ Exercise 1: The goal of this exercise is to learn how to use fork and wait , then to combine fork and execlp within a C program. In addition, you will observe the user process states using the command ps . 1) Write a program within a parent process that launches n children processes. The value of n should be read from the keyboard, we also need to verify that n is less than or equal to 10. Every child will have a number between 1 and n , it has to wait a random number of
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/03/2010 for the course CENG CENG360 taught by Professor Ahmadmuhiedeen during the Fall '10 term at Lebanese International University.

Page1 / 3

Assignment_2 - Student name: _ Assignment 2 Rules: a) You...

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

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