Wednesday, December 8, 2010

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA-III Semester Supplementary Examinations July 2010 UNIX NETWORK PROGRAMMING

Code No: 33

Time: 3hours
Max.Marks:60

Answer any Five questions
All questions carry equal Marks

1. a) Explain the following utilities:
i) df
ii) finger
iii) ftp
iv) mv
v) tee
vi) pg
b) Explain briefly about Vi editor.

2. a) Write a C program to find whether a given file is a file or a directory.
b) What is a shell? Explain why there is a single kernel and multiple shells.

3. Describe how files can be shared in UNIX and explain concept of dup( ).

4. a) What is a process? Write a C program to start a new process.
b) Write the differences between:
i) Kill and raise functions
ii) vfork ( ) and exec ( )

5. a) Write brief notes on:
i) File locking
ii) Record locking
iii) Semaphores.
b) What are the different kernel data structures maintained by kernel for message queues?

6. a) What are the different kernel data structures maintained by kernel for semaphore?
Explain.
b) Why should we associate a type with each message? Explain the purpose of having a type associated with each message, in detail.

7. a) Explain briefly file locking with semaphores.
b) List out the different kernel data structures maintained by kernel for shared memory. Explain briefly.

8. a) Write short notes on TCP/IP model illustrating with suitable diagrams.
b) Illustrate the steps involved in a connection less protocol for a typical client server. Write in brief about the system cells involved on the client and server side.

No comments:

Post a Comment