Sponsored Links


Results 1 to 3 of 3

Thread: CS604 Operating Systems Assignment No. 02 Solution and Discussion Fall 2014

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    CS604 Operating Systems Assignment No. 02 Solution and Discussion Fall 2014

    Sponsored Links1


    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)

    Sponsored Links



    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.

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    If you write the Code in c language, like a=b/0. traps
    Compile a C program and error occurs Invalid memory access or buffer overflow. traps
    While running a program, you press <Ctrl-C>. signal
    Fatima is doing chatting with her friend, by hitting keystrokes. interrupts
    Opening a folder by double clicking mouse. Interrupt
    do correct me if i am wrong

  3. #3
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    signal
    A signal is a software interrupt delivered to a process. The operating system uses signals to report exceptional situations to an executing program. Some signals report errors such as references to invalid memory addresses; others report asynchronous events, such as disconnection of a phone line.

    Interrupt and Trap
    There are two hinderances to a process. Interrupt and trap.
    Interrupt is when the process needs some I/O services whereas trap occurs due to some fault or exception in the code.

    trap
    A trap is an exception in a user process. It's caused by division by zero or invalid memory access. It's also the usual way to invoke a kernel routine (a system call) because those run with a higher priority than user code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2014, 02:54 PM
  2. Replies: 0
    Last Post: 11-23-2013, 03:21 PM
  3. Replies: 0
    Last Post: 05-14-2013, 05:28 PM
  4. CS604 Operating Systems Assignment No. 1 Fall Semester 31st October 2012
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 11-01-2012, 12:00 AM
  5. Replies: 0
    Last Post: 05-05-2011, 01:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft