List one system call that interacts with the file system and one system call that interacts with the process subsystem.
Short DescriptionCS9023 – UNIX INTERNALS
Anna University
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 PDFHow to Use This Question Paper
- Understand the examination pattern.
- Practise questions within the allotted time.
- Identify topics that require further revision.
- Compare with other previous year papers.
More Question Papers
Browse other previous year question papers for this subject.
View All Subject Question PapersQuestion Paper Intelligence
Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part-wise extracted questions
Question type candidates
Section marks require review. Marks charts are withheld.
Optional-choice evidence
Detected alternatives only. Confirm the actual choice rules in the original question paper.
Question navigator
Extracted questions
Differentiate between a program and a process.
ComparisonDefine the context of a process.
DefinitionWhy should the kernel raise the processor priority level to block out interrupts before removing a buffer from the free list?
Other Or UnclassifiedDifferentiate the action taken by the kernel when there are no free buffers and when there are no free inodes. Justify.
ComparisonWhy do inode numbers start from 1 and not 0?
Other Or UnclassifiedSource quality review required
Where does the kernel store information about a process?
Other Or UnclassifiedHow does a process synchronize its execution with that of its children?
Other Or UnclassifiedDoes the allocation scheme for a swap device differ from the allocation scheme for file systems? Justify.
Other Or UnclassifiedWhat are device drivers? _ PART —B (5 x 16 = 80 Marks)
DefinitionSource quality review required
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. .
ExplanationSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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. .
ExplanationSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
(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 UnclassifiedSource quality review required
Advanced Examination Analysis
Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.