UNIX Programming – November 2009

Part – A

    1. Define a system call
    2. What do you mean by IPC?
    3. List down the modes of Terminal I/O
    4. What is concurrency ?
    5. Define a pipe
    6. Define a daemon process
    7. What is memory-mapped l/O ?
    8. Give syntax for waitpid.
    9. What is a shadow password file ?
    10. Give syntax for create( )
    11. Give syntax for stat( )
    12. List down the various file types
    13. What is a heap ?
    14. What is a Jombic profess ?
    15. Define socket
    16. Define signal
    17. Give syntax for vfork( )
    18. Write functions for getting process ID of a process and its parent process.
    19. What is a controlling terminal ?
    20. Define FIFO
    21. List down the exec family of system calls
    22. What are reliable signals ?
    23. List two parameters which are inherited by a child from its parent after fork( )
    24. Give prototype of msgget.
    25. What are the streams?

Part – B

Unit -I

    1. Draw and Explain the structure of Unix File system.
    2. What is I-note ?
    1. Differentiate between dup and dUp2 ( )
    2. Write C program to count the number of blank spacer in a file (give as input) using File I/O system calls.

Unit -II

  1. Describe the environment of a Unix process.
  2. Write short notes on standard I/O library functions.

Unit -III

    1. Write a C program to create an orphan process.
    2. Explain in detail with an example how shell executes programs.
    1. Specify which parameters are inherited by the new program after exec.
    2. Draw the process state Diagram. Explain the contents of Process Control Block (PCB).

Unit -IV

  1. Write short notes on the following :
    1. I/O Multiplexing
    2. Record locking
  2. Write short notes on the following :
    1. Coding rule for daemon process
    2. Terminal I/O.

Unit -V

    1. Explain how IPC is performed using shared memory with an example.
    2. What are stream pipes ?
  1. Write about advantages and drawbacks or pipes and message queues. Explain their IPC functionality. When is one more suitable than the other.

Attention : This exam questions are converted from the real exam paper to a digital text format by using an OCR Software that may made some mistakes, I reviewed it many times to correct it, But may still there some errors that I missed or misspelled, So if you detect an error or mistake PLEASE report by adding a comment or contact me.