November / December 2013
UNIX INTERNALS
Anna University
3 question papers available. Select an examination session to view its question paper.
UNIX INTERNALS
UNIX INTERNALS
UNIX INTERNALS
Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.
| Question | 2012 | 2013 |
|---|---|---|
| Define the context of a process. | 1 | 1 |
Define the context of a process.
2 eligible source papersWhat is the advantage of buffer cache?
1 eligible source papersDefine the system structure.
1 eligible source papersWhat are the drawbacks of getblk ().
1 eligible source papersState the fields of super block.
1 eligible source papersDefine lseek command.
1 eligible source papersWhat is the function of mknod ().
1 eligible source papersDefine the command used for changing the size of the process.
1 eligible source papersState the used id of a process.
1 eligible source papersDefine terminal polling.
1 eligible source papersWhat are the functions of line discipline?
1 eligible source papersGive the layout cf the UNIX file system.
1 eligible source papersDoes the bread algorithm always initiates a disk read? Justify.
1 eligible source papersList any two additional fields of the in-core copy of the inode. Why are they not present in the disk inode?
1 eligible source papersWhat does the namei algorithm do? Name two system catis that use it.
1 eligible source papersWhat are kernel data structures modified by the OPEN system call? How. are they modified?
1 eligible source papersCompare an unnamed pipe with a named pipe.
1 eligible source papersDefine the context of a process.
2 eligible source papersWhat is the process scheduling policy in UNIX?
1 eligible source papersWhat is a swap map? _
1 eligible source papersList the ways by which processes communicate with each other in UNIX.
1 eligible source papersDiscuss with diagrams the five scenarios the Unix kernel may follow while allocating a buffer for a disk block.
0 eligible source papers(8) (i) Explain the structure of a disk inode. Explain the algorithm that allocates an in-core inode given a disk inode. (10) (ii) Assume that there are 16 inodes per block and block 2 is the beginning of the inode list, compute the logical disk block that contains inode number 40. Assuming that the size of the disk inode _ is 32 bytes, compute the byte offset of the inode number 40 in that block. ன ச (6) | ~ OR . (b) (i) Explain the structure of the super block. Explain the algorithm that assigns a disk inode to a newly created file. (10) (ii) Explain how free disk block numbers are maintained in the super _ block. What is the main difference between the free inode list and free block list of the super block? (6) “43 (a) Explain the algorithm which implements the OPEN system call. Mention clearly the kernel data structures used and how its fields are used / updated. When does the algorithm return an error? What - are the low level algorithms used by it? : OR (b) Explain the algorithm which implements the PIPE system call. Mention clearly the kernel data structures used and how its fields are used / updated. When does the algorithm return an error? What are the low level algorithms used by it?
0 eligible source papers(a) (i) Explain with a diagram, the various state transitions that a process undergoes during its lifetime in a Unix system. (8) (ii) Explain any ONE algorithm that manipulates region mentioning input(s), output(s), purpose and system call(s) that uses it. (8) (b) (i) Explain how the fork system calls implemented in Unix. (10) (ii) Explain the algorithm for Process Scheduling. | . (6)
0 eligible source papers(a) (i) Explain the data structures used in the demand paging memory management system of Unix. (8) (ii) When does the system incur validity page fault? Explain clearly how it is handled. (8)
0 eligible source papers(b) Write notes on the (i) I/O subsystem of UNIX. (8) (ii) Interprocess Communication in UNIX. (8)
0 eligible source papersList one system call that interacts with the file system and one system call that interacts with the process subsystem.
1 eligible source papersDifferentiate between a program and a process.
1 eligible source papersWhy should the kernel raise the processor priority level to block out interrupts before removing a buffer from the free list?
1 eligible source papersDifferentiate the action taken by the kernel when there are no free buffers and when there are no free inodes. Justify.
1 eligible source papersWhy do inode numbers start from 1 and not 0?
0 eligible source papersWhere does the kernel store information about a process?
1 eligible source papersHow does a process synchronize its execution with that of its children?
1 eligible source papersDoes the allocation scheme for a swap device differ from the allocation scheme for file systems? Justify.
1 eligible source papersWhat are device drivers? _ PART —B (5 x 16 = 80 Marks)
0 eligible source papersExplain the structure of the Buffer pool. Discuss with diagrams any three | scenarios the Unix kernel may follow while allocating a buffer for a disk block. .
0 eligible source papers(a) (i) How is a file represented internally in Unix? Explain the algorithm that allocates an in-core inode. Give 2 system calls which wouid invoke this kernel algorithm. (10) {ii) Assume that an Operating System like UNIX has the following , _ structure for the table of contents in its inode. What is the maximum size of a file that is supported by that OS? 4 entries for direct blocks, 2 for single indirect and 1 double indirect blocks. The block size is 4K bytes. A block number is addressable by a 32 bit integer. (6)
0 eligible source papers(b) {i) What information is stored in the super block? Explain the algorithm ialloc that assigns a disk inode. Give 2 system calls which would invoke this kernel algorithm. (ii) Differentiate between the free inode list and the free block list maintained by the kernel in the super block of the file system. Justify why this difference is needed.
0 eligible source papers(a) Explain the algorithm which implements the READ system call. Mention clearly the kernel -data structures used and how its fields are used / updated. . OR (0) Explain the algorithm which implements the MOUNT system call. Mention clearly the kernel data structures used and how its fields are used / updated. .
0 eligible source papers(a) (i) Explain with a diagram, the various state transitions that a process undergoes during its lifetime in a Unix system. (ii) Explain any ONE algorithm that manipulates regions mentioning input(s), output(s), purpose and system call(s) that uses it. (b) (i) Explain how.the fork system call is implemented in Unix. (ii) What happens when the following program is run? Explain. #include <signal.h> main() { extern catcher(); signal(SIGCLD, catcher); if (fork()==0) exit(); pause(); } catcher() { printf(“parent caught sig \n’); signal(SIGCLD, catcher); }
0 eligible source papers(a) (i) Explain how the swapper process works. - (ii)Explain the data structures used in the demand paging memory management system of Unix.
1 eligible source papers(b) (i) Explain how the Shell is implemented in Unix. {ii) Write a short note on Inter process communication in Unix. (10) (6) (8) (8) (40) (6) 6) (10) (8) (8)
0 eligible source papersHistorical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.