12-04-2014, 09:47 PM
CS604 Operating Systems Assignment No. 02 Solution and Discussion Fall 2014 Due Date: 10th Dec 2014
Your assignment must be in .doc format. (Any other formats like scan images, PDF, Zip, rar, bmp, etc will not be accepted).
Save your assignment with your ID (e.g. bc020200786.doc).
No assignment will be accepted through email.
Your assignment must be in .doc format. (Any other formats like scan images, PDF, Zip, rar, bmp, etc will not be accepted).
Save your assignment with your ID (e.g. bc020200786.doc).
No assignment will be accepted through email.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupted.
Your assignment is copied from internet, handouts or from any other student
(Strict disciplinary action will be taken in this case).
Assignment
Question 1: (10 Marks)
Write a Unix/Linux base code for creating the pipe for showing the inter process communication, i.e. the child process send message “Hello world” to parent process, which reads it and displays it on the screen.
Question 2: (5 Marks)
Categorize the following examples into Interrupt, signal and traps:
If you write the Code in c language, like a=b/0.
Compile a C program and error occurs Invalid memory access or buffer overflow.
While running a program, you press <Ctrl-C>.
Fatima is doing chatting with her friend, by hitting keystrokes.
Opening a folder by double clicking mouse.
Your assignment must be in .doc format. (Any other formats like scan images, PDF, Zip, rar, bmp, etc will not be accepted).
Save your assignment with your ID (e.g. bc020200786.doc).
No assignment will be accepted through email.
Your assignment must be in .doc format. (Any other formats like scan images, PDF, Zip, rar, bmp, etc will not be accepted).
Save your assignment with your ID (e.g. bc020200786.doc).
No assignment will be accepted through email.
Rules for Marking:
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The submitted assignment does not open or file is corrupted.
Your assignment is copied from internet, handouts or from any other student
(Strict disciplinary action will be taken in this case).
Assignment
Question 1: (10 Marks)
Write a Unix/Linux base code for creating the pipe for showing the inter process communication, i.e. the child process send message “Hello world” to parent process, which reads it and displays it on the screen.
Question 2: (5 Marks)
Categorize the following examples into Interrupt, signal and traps:
If you write the Code in c language, like a=b/0.
Compile a C program and error occurs Invalid memory access or buffer overflow.
While running a program, you press <Ctrl-C>.
Fatima is doing chatting with her friend, by hitting keystrokes.
Opening a folder by double clicking mouse.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
