VUSuperior Chat Room

Thursday, 4 December 2014

CS604 Operating System Assignment No.02 Solution And Discussion Semester: Fall 2014 Due Date: 10/12/2014

CS604 –Operating System
Assignment No. 02
Semester: Fall 2014

Total Marks: 15

Due Date: 10/12/2014
Uploading instructions:

  • 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:                         

    1.      If you write the Code in c language, like a=b/0.
    2.      Compile a C program and error occurs Invalid memory access or buffer overflow.
    3.      While running a program, you press <Ctrl-C>.
    4.      Fatima is doing chatting with her friend, by hitting keystrokes.
    5.      Opening a folder by double clicking mouse.


NOTE: Do not put any query on MDB about this assignment, if you have any query then email at cs604@vu.edu.pk.

Deadline: Your assignment must be uploaded/submitted on or before 10th Dec 2014.


0 comments:

Post a Comment