12CS2002UNIXINTERNALS.pdf
-
Upload
krishna-kumar-velappan -
Category
Documents
-
view
215 -
download
0
Transcript of 12CS2002UNIXINTERNALS.pdf
-
8/19/2019 12CS2002UNIXINTERNALS.pdf
1/3
- 1 -
Reg. No:
(R)
SRI RAMAKRISHNA ENGINEERING COLLEGE, COIMBATORE(Autonomous Institution, Approved by AICTE and Permanently affiliated to Anna University, Chennai)
AUTONOMOUS EXAMINATIONS – MAY 2015
SIXTH SEMESTER - B.E – COMPUTER SCIENCE AND ENGINEERING
12CS2002 - UNIX INTERNALS
Answer ALL questions
Duration: 3 Hours Maximum: 100 Marks
PART – A (10 x 1 = 10 Marks)
1. Pid of init process is
a) 0 b) 1 c) 256 d) 1024
2. How do you get parent process identification number?
a) waitpid() b) getpid() c) getppid() d) parentid()
3. The file system information is stored in
a) Boot block b) Super Block c) Inode Table d) Data Block
4. namei() is
a) ANSI C library function b) C library function c) System call d) kernel routine
5. Which function can be used instead of the dup2 to duplicate the file descriptor?
a) read() b) open() c) stat() d) fcntl()
6. Read() system call on success returns
a) 0 b) -1 c) 1 d) number of character
7. How to run a process in the background?
a) & b) * c) ? d) |
Regulation- 2012
-
8/19/2019 12CS2002UNIXINTERNALS.pdf
2/3
- 2 -
8. The signal sent to a process when the Ctrl-C key pressed is
a) KILL b) TSTP c) TERM d) INT
9. The address of a page table in memory is pointed by
a) stack pointer b) page table base register c) page register d) program counter
10. Operating System maintains the page table for
a) each process b) each thread c) each instruction d) each address
PART – B (5 x 2 = 10 Marks)
11. Distinguish user and kernel modes.
12. State super block.
13. Give the syntax of STAT,FSTAT
14. Define context switch.
15. Specify the goal of Page stealer process.
PART –
C (5 x 16 = 80 Marks)
16. a) i) Describe the architecture of UNIX operating system. (8)
(8)
(16)
ii) Draw and demonstrate the state transition diagram of processor.
(OR)
b) Illustrate the buffer allocation and releasing algorithms with two buffer retrieval
scenarios.
17. a) i) What is disk inode and incore inode? Discuss about the fields present in disk
inode.
(10)
(6)
(16)
ii) What is directory? Analyze the layout of any one directory.
(OR)
b) Write and express the algorithms for assigning and releasing an inode.
-
8/19/2019 12CS2002UNIXINTERNALS.pdf
3/3
- 3 -
18.
Compulsory question:
Illustrate the algorithm for opening and closing a file and discuss the data structure
involved.
(16)
19. a) i) Give a brief account on the parameters considered during scheduling. (8)
ii) Demonstrate the fair-share scheduler for three processor. (8)
(OR)
b) What is socket? Discuss the working principle of socket communications. (16)
20. a) Define page fault? Give the types of page fault handler and Explain anyone with an
algorithm.
(16)
(OR)
b) i) Discuss briefly the concepts involved in driver interface. (8)
ii) Write short notes on terminal drivers. (8)
*****