Академический Документы
Профессиональный Документы
Культура Документы
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
⋆⋆⋆⋆⋆
2. What is the purpose of grep command? Explain the various options available with
the grep command with an example. [4+8+4]
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]
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
⋆⋆⋆⋆⋆
(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]
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 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
⋆⋆⋆⋆⋆
(a) sort
(b) cut
(c) pg
(d) comp [4x4=16]
(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]
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