VTU Computer Science (Semester 6)
Unix Systems Programming
December 2014
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) What are POSIX standards? Explain different subsets of POSIX standards. Write a C or C++ program to check and dispaly_POSIX VERSION/
6 M
1 (b) Write a C OR C++ program to check the following compile time limits, along with its minimum value: i) supplemental groups, ii) maximum number of links of a file iii) number of simultaneous asynchronous I/O, iv) real time signals v) maximum number of child process.
8 M
1 (c) List common set of APIs in UNIX system. Discuss the common characteristics of APIs along with their error status codes.
6 M

2 (a) Mention the different file types available in UNIX / POSIX systems.
8 M
2 (b) List out the common files of UNIX systems with their usage and general file attributes.
8 M
2 (c) Differentiate between file stream pointer and file descriptor.
4 M

3 (a) Write the prototype and structure of APIs mentioned. Write a simple program for using these APIs. i) utime ii) link
12 M
3 (b) Describe the device file APIs along with a sample program.
8 M

4 (a) Outline the environment structure of a process and mention any FOUR environment variables.
6 M
4 (b) Give reasons as to why shared libraries are better, with an example.
6 M
4 (c) Mention at least SIX resources limits and briefly explain the limits that they put on a process.
8 M

5 (a) Explain various exec functions along with its prototypes and diagram that shows the relationships among them.
10 M
5 (b) Explain the system function with its prototype.
4 M
5 (c) Explain network login, with suitable diagram.
6 M

6 (a) Explain error handling for a Daemon process with a neat block diagram. Write the system library functions associated with error logging.
8 M
6 (b) Write the timeline or program sequence of execution for sigsetjmp and siglongjmp handling.
8 M
6 (c) Write the prototype of ALARM and PAUSE function and explain how they operate.
4 M

7 (a) Write the neat diagrammatic representation of a message queue with proper labelling. Write the data structure associated with message queue along with its elements detail.
8 M
7 (b) Write the prototype of system library calls available to manipulate shared memory and semaphores.
7 M
7 (c) Write a simple C program to illustrate the concept of a co-process.
5 M

8 (a) Explain with a neat diagram, how STREAM PIPES can be used to implement client server model.
10 M
8 (b) Explain POPEN and PCLOSE functions with prototypes and demonstrate its usage with a sample C program.
10 M



More question papers from Unix Systems Programming
SPONSORED ADVERTISEMENTS