Question: ???????????? Question 1: System Calls (3 marks =1+1+1) 1. Give a brief definition of Application Programming Interface (API). 2. Enumerate methods used by system calls

Question 1: System Calls (3 marks =1+1+1) 1. Give a brief definition of Application Programming Interface (API). 2. Enumerate methods used by system calls to pass parameters to the operating system. 3. What is the running state of the processor? Question 2: File System (3marks=0.5+0.5+0.5+0.5+0.5+0.5) 1. Give the roles of file system. 2. What are the different filc access methods that can offer a file system? 3. What arc the basic strategies used by a file system to assign storage blocks to a file? 4. What is the major problem with contiguous allocation? How can we solve it? Consider a UNIX file system with 12 direct pointers, 1 indirect pointer, 1 double-indirect pointer, and 1 triple-indirect pointer in the i-node. Assume that disk blocks are 32K bytes and that each pointer to a disk block requires 8 bytes, 5. Calculate the number of pointern/ block. 2. What are the different file access methods that can offer a file system? 3. What are the basic strategies used by a file system to assign storage blocks to a file? 4. What is the major problem with contiguous allocation? How can we solve it? Consider a UNIX file system with 12 direct pointers, 1 indirect pointer, 1 double-indirect pointer, and 1 triple-indirect pointer in the i-node. Assume that disk blocks are 32K bytes and that each pointer to a disk block requires 8 bytes. 5. Calculate the number of pointers / block. 6. What is the largest possible file that can be supported with this design? Show the expression to get full credit (i.e., you should not calculate the final numeric answer). 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
