PREVIOUS YEAR QUESTION PAPER

CS9023 – UNIX INTERNALS

Anna University

Regulation 2008 Semester 5 2012

Question Paper Details

University Anna University
Degree B.Tech. Information and Technology
Department Information and Technology
Regulation Regulation 2008
Semester 5
Subject Code CS9023
Subject Name UNIX INTERNALS
Exam Session November / December 2012
Duration 3 Hrs
Maximum Marks 100

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

17Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
2Choice candidates

Part-wise extracted questions

Part A17

Question type candidates

Other Or Unclassified10
Comparison2
Definition2
Explanation2
Short Description1

Section marks require review. Marks charts are withheld.

Optional-choice evidence

Detected alternatives only. Confirm the actual choice rules in the original question paper.

Part A — Question 12: Option a · Option b
Part A — Question 15: Option a · Option b

Question navigator

Extracted questions

Part A — 1

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

Short Description
Part A — 2

Differentiate between a program and a process.

Comparison
Part A — 3

Define the context of a process.

Definition
Exact text match in other eligible papers: NOV_DEC 2013
Part A — 4

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

Other Or Unclassified
Part A — 5

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

Comparison
Part A — 6

Why do inode numbers start from 1 and not 0?

Other Or Unclassified

Source quality review required

Part A — 7

Where does the kernel store information about a process?

Other Or Unclassified
Part A — 8

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

Other Or Unclassified
Part A — 9

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

Other Or Unclassified
Part A — 10

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

Definition

Source quality review required

Part A — 11

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. .

Explanation

Source quality review required

Part A — 12a

(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)

Other Or Unclassified

Source quality review required

Part A — 12b

(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.

Other Or Unclassified

Source quality review required

Part A — 13a

(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. .

Explanation

Source quality review required

Part A — 14a

(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); }

Other Or Unclassified

Source quality review required

Part A — 15a

(a) (i) Explain how the swapper process works. - (ii)Explain the data structures used in the demand paging memory management system of Unix.

Other Or Unclassified

Source quality review required

Part A — 15b

(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)

Other Or Unclassified

Source quality review required

Advanced Examination Analysis

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