Вы находитесь на странице: 1из 4

Code No: RR320505 Set No.

1
III B.Tech II Semester Supplementary Examinations, Aug/Sep 2007
ADVANCED UNIX PROGRAMMING
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Write short notes on the following:

(a) Process utilities


(b) Disk utilities [8+8]

2. What is the purpose of grep command? Explain the various options available with
the grep command with an example. [4+8+4]

3. Define file. Explain in detail about the various files. [4+12]

4. Write a program that calls fork and has the child create a new session. Verify
that the child becomes a process group leader, and that the child no longer has a
controlling terminal. [16]

5. (a) Write in detail about the interrupted system calls. [8]


(b) Write about the kill and raise functions. [4+4]

6. (a) Write a function to test for a locking condition.


(b) Write about Dead lock. [8+8]

7. (a) Explain “popen” and “pclose” functions. [4+4]


(b) What are the named pipes? Explain in detail. [3+5]

8. What is shared memory? What is the importance of it? Explain in detail about
the process of “Allocating a shared memory segment”. [3+5+8]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR320505 Set No. 2
III B.Tech II Semester Supplementary Examinations, Aug/Sep 2007
ADVANCED UNIX PROGRAMMING
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Explain the following commands with syntax

(a) ln
(b) mv
(c) rm
(d) ulimit [4x4=16]

2. Write a script that accepts a file name as argument and displays the last modifica-
tion time, if the file exists and a suitable message if it doesnt. [16]

3. Define system call. Explain in detail about the working and syntax of file structure
related system calls. [4+12]

4. What is meant by a process? Explain any four process related system calls with
syntax. [4+3x4=16]

5. (a) Write about the slow system calls. [8]


(b) Write about abort and system functions. [4+4]

6. (a) Explain in detail about the requirement of file locking mechanism.


(b) Explain in detail about fcntl( ) function. [8+8]

7. (a) Explain about the “Effect of O-NDELAY flag on PIPEs and FIFOs”.
(b) Explain, How to obtain the list of login names in sorted order into the file
“usersinfo.dat” using pipes. [8+8]

8. (a) Write about Timing comparison of “Message Queues Vs. Stream Pipes”.
(b) Explain about the Message Queue id. (msqid ds) data structure. [8+8]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR320505 Set No. 3
III B.Tech II Semester Supplementary Examinations, Aug/Sep 2007
ADVANCED UNIX PROGRAMMING
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Explain the following commands with syntax


(a) umask
(b) find
(c) mount
(d) unlink [4x4=16]
2. What is the purpose of Stream editor? Explain which option should be used to
place the contents of a file f1 after line. [4+12]
3. Explain the following system calls with syntax:
(a) mkdir()
(b) rndir()
(c) chdir()
(d) symlink() [4x4=16]
4. Write short notes on the following:
(a) Process termination
(b) Zombie process [8+8]
5. (a) What is signal handler? Explain how to install a signal Handler? [3+5]
(b) Write in detail about “Reliable signal Handling”. [8]
6. (a) With an example, Explain about the setting a lock. [3+5]
(b) With an example, Explain about clearing a lock. [3+5]
7. (a) Explain, “about the events occurred, when you call the popen( ) and pclose(
) functions”?
(b) Explain about the semget( ), semctl( ) and semop( ) functions. [7+9]
8. (a) With an example, Explain in detail about the process of writing Messages on
to a Queue. [4+4]
(b) With an example, Explain in detail about the process of Reading a Message
from the Queue. [4+4]

⋆⋆⋆⋆⋆

1 of 1
Code No: RR320505 Set No. 4
III B.Tech II Semester Supplementary Examinations, Aug/Sep 2007
ADVANCED UNIX PROGRAMMING
( Common to Computer Science & Engineering, Information Technology
and Computer Science & Systems Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆

1. Explain in detail about the UNIX Operating system structure. [16]

2. Explain the following commands with syntax

(a) sort
(b) cut
(c) pg
(d) comp [4x4=16]

3. Explain the following system calls with syntax:

(a) fseek()
(b) fgetc()
(c) getc()
(d) getchar() [4x4=16]

4. Suppose a process does not wish to block until its children terminate. How can it
ensure that child processes are cleaned up when they terminate? [16]

5. (a) Explain about the “features added to enhance signal reliability”. [8]
(b) Explain about “abort” and “kill” functions. [4+4]

6. (a) Write about Advisory locking versus mandatory locking.


(b) Write about file locking versus Record Locking. [8+8]

7. (a) What are the named pipes? Explain in detail. [3+5]


(b) Explain, in detail about the client - server communication using FIFOS. [8]

8. (a) Draw & Explain about the “Message Queue structures in the Kernel” [3+5]
(b) With an example, Explain in detail about the process of Reading a Message
from the Queue. [5+3]

⋆⋆⋆⋆⋆

1 of 1

Вам также может понравиться