UNIX & LINUX system programming.pdf - Google Drive

1 downloads 75 Views 66KB Size Report
Whoops! There was a problem loading this page. UNIX & LINUX system programming.pdf. UNIX & LINUX system programm
(×=)

EJ – 820

*EJ820*

VI Semester B.E. (CSE/ISE) Degree Examination, January 2013 (2K6 Scheme) CI 6.5 : UNIX/LINUX SYSTEM PROGRAMMING Time : 3 Hours

Max. Marks : 100

Instruction : Answer any five full questions selecting atleast two from each Part. PART – A 1. a) List and explain the following feature test macros defined by POSIX. i) – POSIX – JOB – CONTROL ii) – POSIX – CHOWN – RESTRICTED iii) – POSIX – NO – TRUNC iv) – POSIX – SAVED – IDS. b) Discuss the role of Inodes in UNIX system.

12 8

2. a) Explain the following file APIs. i) read ii) write iii) create. b) Explain the concept of file locking mechanism.

12 8

3. a) Explain the role of the following data structures used in file manipulation. i) file description table ii) file table iii) inode table.

12

b) Differentiate between Hard and symbolic links with examples.

8

4. a) List and explain the different versions of the exec system call.

10

b) Explain the role of UNIX shell command pipes. Give an example.

5

c) List the process attributes that cannot be queried but can be changed.

5 P.T.O.

EJ – 820

-2-

*EJ820*

PART – B 5. a) Give the meaning of the following signals.

5

i) SIGALRM ii) SIGABRT iii) SIGINT iv) SIGSEGV v) SIGCHLD. b) Implement a C program that uses the sigaction API that is called by a process to setup a signal handling method for each signal it wants to deal with. 10 c) Write a note on tegetpgrp and tesetpgrp functions.

5

6. a) Explain the different events that may occur during the handling of SIGCHILD signal generated by the Kernel. 10 b) Write a C program that illustrates how to set up a real-time clock interval timer using the alarm API. 7. a) Explain the following message APIs

10 10

i) Msg get ii) Msg snd iii) Msg rcv iv) Msg ctl. b) List and briefly explain the data associated with one semaphore set stored in each entry of a semaphore table. 10 8. Write short notes on :

(5×4=20)

i) UNIX kernel support for processes ii) Kill and alarm APIs iii) I/O redirection iv) Exec system call. ———————

Suggest Documents