SUBJECT QUESTION PAPER COLLECTION

CS9023 – UNIX INTERNALS

Anna University

B.Tech. Information and Technology Information and Technology Regulation 2008 Semester 5
3 Question Papers
2012 Earliest Year
2013 Latest Year

📚 Previous Year Question Papers

3 question papers available. Select an examination session to view its question paper.

Historical Examination Intelligence

Based on available extracted papers. Question groups and frequency are provisional, not official syllabus weightage or examination predictions.

3Source papers
3Papers with questions
42Question occurrences
41Distinct question candidates
1Exact repeat candidates
100.0%Extraction coverage

Papers by examination year

20121
20132

Question type candidates

Other Or Unclassified17
Definition14
Short Description5
Comparison3
Explanation3

Detected examination patterns

A+B2
A1

Most repeated exact question texts

Define the context of a process.2 papers

Question appearance heatmap

Question20122013
Define the context of a process.11

Frequently repeated revision candidates

Search historical questions

What is the advantage of buffer cache?

1 eligible source papers

Define the system structure.

1 eligible source papers

What are the drawbacks of getblk ().

1 eligible source papers

State the fields of super block.

1 eligible source papers

What is the function of mknod ().

1 eligible source papers

Define the command used for changing the size of the process.

1 eligible source papers

State the used id of a process.

1 eligible source papers

Define terminal polling.

1 eligible source papers

What are the functions of line discipline?

1 eligible source papers

Give the layout cf the UNIX file system.

1 eligible source papers

Does the bread algorithm always initiates a disk read? Justify.

1 eligible source papers

List any two additional fields of the in-core copy of the inode. Why are they not present in the disk inode?

1 eligible source papers

What does the namei algorithm do? Name two system catis that use it.

1 eligible source papers

What are kernel data structures modified by the OPEN system call? How. are they modified?

1 eligible source papers

Compare an unnamed pipe with a named pipe.

1 eligible source papers

What is the process scheduling policy in UNIX?

1 eligible source papers

List the ways by which processes communicate with each other in UNIX.

1 eligible source papers

Discuss 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 papers

List one system call that interacts with the file system and one system call that interacts with the process subsystem.

1 eligible source papers

Differentiate between a program and a process.

1 eligible source papers

Why should the kernel raise the processor priority level to block out interrupts before removing a buffer from the free list?

1 eligible source papers

Differentiate the action taken by the kernel when there are no free buffers and when there are no free inodes. Justify.

1 eligible source papers

Why do inode numbers start from 1 and not 0?

0 eligible source papers

Where does the kernel store information about a process?

1 eligible source papers

How does a process synchronize its execution with that of its children?

1 eligible source papers

Does the allocation scheme for a swap device differ from the allocation scheme for file systems? Justify.

1 eligible source papers

What are device drivers? _ PART —B (5 x 16 = 80 Marks)

0 eligible source papers

Explain 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 papers

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.