You are on page 1of 14

Unix Architecture

PART A Questions 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. What is meant by multiprogramming? List the fields of the buffer header. The inodes does not specify________________What is the syntax for the open system call? Define pages Define parent and child process. List the three parts of the swapping algorithm

Question Bank

The UNIX system contains _______________ & __________ device. What is the use of the kill system call? What is the significance of sockets? State the meaning of sleep and wakeup states of a process. List the various fields of a buffer header. What is an inode? List any two contents of an inode. What is the use of lseek system call? How does it differ from the read and write system calls? What is context of a process? What does it contain? How is a process created by a user (in the UNIX OS)? List the three major steps performed by the swapping algorithm. What are the two types of devices the UNIX system contains? List any two system calls for messages. Give the syntax of a bind system call used in sockets. State any one advantage and disadvantage of buffer cache What is meant by U-area or U-Block? State the difference between in-core inode and buffer header Define named and unnamed pipe Difference between exception and interrupt Define system boot What is thrashing? State the service provided by itocl system call _____________ system call facilitates debugging process What is shared memory Define shell programming. 1

Karunya University | Dept. of Information Technology

Unix Architecture
32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. Write scenarios of retrieval of a buffer. How to convert pathname to an INODE? Give syntax for fork call. Define Context switch. What are the modes of process execution? What is disk driver? ____________handles the memory hierarchy. List any two system calls for messages. What is critical region? What are the essential Unix Commands?

Question Bank

Write the difference between Buffer Cache and Buffer headers. Draw the block diagram of file structure. Compare File System vs VM Systems. What are the states of a process? What do you mean by process hierarchy? Write the advantages and disadvantages of page size. How should page fault be handled? Define Socket. What is the significance of network communications? What are essential Unix Commands? Differentiate between Buffer Cache and Buffer headers. Draw the Block Diagram of File Structure. Compare File Systems Vs VM Systems. What are the States of a Process? What do you mean by process hierarchy? Write the advantages and disadvantages of page size. How to handle page fault? Define Socket. Write about Network Communications. What is meant by process? What are the contents of buffer header? What is the difference between in-core inode and buffer header? What is the syntax for write system call? 2

Karunya University | Dept. of Information Technology

Unix Architecture
65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91.

Question Bank

The context of a process is a union of its __________, __________ and __________. What is the syntax for kill system call? Write the two types of page faults. What is the syntax for IOCTL system call? What is the purpose of shmget system call? What are the elements of semaphore in UNIX system V? What are the parts of the UNIX system? List the components of UNIX file system. When the kernel releases the inode, it decrements its __________. What is the purpose of Link system call? Write its syntax. What is PS? What is its purpose? What is the format of Kill system call? Write down the steps for swapping. What are the types of page faults? Write the syntax of Ptrace system call. _________ system call creates a new region of shared memory. __________ is an executable file. Buffer consists of __________and __________. Name the different types of files. What is the Syntax for close system call? Context of a Process is the union of __________, __________ and __________. Name the parts of an executable file. The System can incur __________ and __________ types of page faults. UNIX System contains two types of devices namely __________ and __________. The Format of each element of oplist is __________, __________ and __________. What is the Syntax for bind? Name the two data structures that a kernel contains. 3

92. The kernel identifies each process by its process number, called the __________. 93. The __________ identifies particular inodes by their file system and inode number and allocates in-core inodes at the request of higher level algorithms.

Karunya University | Dept. of Information Technology

Unix Architecture
94. Write down the syntax for open syntax call. 95. Define process identifiers. 96. What setpgrp system does? 97. What does a modify bit indicate?

Question Bank

98. The __________ table contains an entry for every page on a swap device. 99. Write down the syntax for ptrace system call. 100. The __________ system call creates a new region of shared memory or returns an existing one. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. The Unix operating system was first developed in __________ language. A Unix _________ is the core or key component of the operating system. What does inode store? Write the syntax for lseek system call. What are signals? What is a process? Write the Syntax for ioctl. What are the three input modes for terminals in Unix? How is network communication done? Mention the powerful tool for process tracing. A buffer contains two parts: they are _______ and ________. A process is _______. Define Directory. Give the syntax for creat system call. A region is a _______. _______ inform processes of the occurrence of asynchronous events. What is Disk Driver? A Clist is a _______. A process attach _______to its virtual address space with _______ system call. _______ allow arbitrary processes to exchange data and synchronize execution. State the benefit of buffer cache. What is the function of the who command? Write the syntax of the open system call. What is the use of pipe implementation? 4

Karunya University | Dept. of Information Technology

Unix Architecture
125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 152. 153. 154. 155. 156. 157. What is the meaning of zombie state? Mention the role of an interrupt vector. When does a page fault condition occur? State the function of ioctl. Write the task of shmget. Define sockets? What is kernel? Write the use of buffer cache. What is inode? Distinguish between library function and system call. What are the ways for normal termination of a process? What are signals? What is demand paging? What are sockets? What are IPC mechanisms? What is use of shared memory? What is the purpose of a System Call? Process in UNIX is created by _______ system call. Write a statement to change the owner of a file. What is the syntax of Open system call? Define Demand Paging. What is the purpose of Sleep statement? What are the two types of page faults? What is the syntax and purpose of Select system call?

Question Bank

_______ system call creates a new region of a shared memory. Write the syntax of msgget. Define a Protocol. Expand HTTP. What is FTP? Expand UDP. What is Multiplexing? What is IGMP? 5

151. What is Internet?

Karunya University | Dept. of Information Technology

Unix Architecture
158. 159. 160. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. What is the size of IP datagram? What is the purpose of RARP? Expand DHCP. PART B Questions

Question Bank

List the system calls which help processes interact with file subsystem What is the role of DUP system call? List the set of process states. What are the data structures of kernel to support low-level memory management functions & demand paging? What is role of semaphores in UNIX system? List the various states of a process. Write the algorithm for conversion of a path name to an Inode. Explain the various steps of Interrupt handling. Explain the various data structures provided by the kernel for demand paging. What is a shared memory? What are the system calls associated with them? Illustrate with neat diagram the functionality of various kernel modules in unix Explain the algorithm for converting the path name to inode Write the algorithm involved in creating a new process and explain it Define map. Explain how utilized for swapping Explain message passing inter process communication mechanism How to read and write disk blocks? Write the difference between link and unlink in a file? Explain about process model. What are memory management policies? Define IPC. Write the advantages and disadvantages of Buffer Cache. Explain about INODE cache issues. Explain about thread model. Define reallocation. What are the conditions for mutual exclusion? Write the advantages and disadvantages of Buffer Cache. Explain about INODE cache issues. 6

Karunya University | Dept. of Information Technology

Unix Architecture
28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. Explain about thread model. Define reallocation. What are the conditions for mutual exclusion? Write an algorithm for reading a disk block. What are the contents of super block? What are the steps needed for a context switch? What are the functions of line discipline?

Question Bank

What is the purpose of bind and connect system call? Write its syntax. What are the characteristics of Unix file system? List the contents of disk inodes. Classify the signals. List the functions of a line discipline modules in Terminal Drivers. How is interprocess communication done using shared memory? What are the characteristics of a UNIX file system? Explain Dup System call. What are the functions of a Clock Interrupt Handler? What are the Elements of a Queue? What are the System Calls for messages? List down the combination conditions for the status of a buffer. Explain about file and record locking. When will a process goes to sleep? Name the three possible cases when freeing resources. Write down the pseudo code of the structure of debugging process. What is the difference between user mode and kernel mode? Define super block. Define process groups. What is the process of swapping out? Write about the system calls used for IPC. Write about Buffer header. Give details about stat and fstat. Write short notes on handling signals. What is Demand Paging? Give a brief note on Semaphore. 7

Karunya University | Dept. of Information Technology

Unix Architecture
61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. Write short notes on process context? Mention the fields of a super block. Write a short note on Signals.

Question Bank

What are the data structures involved in demand paging? List down the system calls associated with Messages. What is a shell script? What is the difference between unlink and rm? Write a short note on sleep command. What is use of biod process? Write any 4 system calls for sockets List out any 5 UNIX commands and write their syntax and purpose. What are the different categories of system calls? How are Interrupts handled? What are the contents of a pfdata table? Write an algorithm to share memory between processes. Write a note on protocol layers. What are the fields of UDP header? List down the services offered by transport layer. What is inside the router? What is an Ethernet? PART C Questions

1. 2. 3. 4. 5. 6. 7. 8.

Explain the architecture of UNIX with a neat block diagram of the system kernel. Discuss the advantages and disadvantages of the buffer cache. Write a detailed note on INODES. List and explain the system calls for the UNIX file system and explain any two of them. Explain about SLEEP process in UNIX system Discuss in detail about how a process is created in UNIX system. Explain the memory management policy of demand paging in UNIX system. Write about STREAM in I/O subsystem of UNIX system. 8

Karunya University | Dept. of Information Technology

Unix Architecture
9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25.

Question Bank

Explain the PROCESS TRACING in the inter process communication of UNIX system. Discuss in detail about SOCKETS in the inter process communication of UNIX system. Draw the block diagram of the kernel and explain its various subsystems. Explain the various scenarios for retrieval of a buffer with its algorithm and neat diagram. Explain algorithm of converting the Byte offset into Block number in file system. Explain the concept of Pipes and its various operations with suitable algorithms. Explain the various process states and its transitions in detail. What are signals? Explain the algorithm of handling signals. When does a kernel swap a process out? Explain in detail. Explain the open system call for a device with its algorithm. Explain the various system calls used for messages. Also explain the various steps performed by the system call msgsnd with the algorithm. Write in detail about sockets and its various system calls. Explain the basic concepts related to process management in Unix Briefly explain the various buffer cache mechanism adopted by Unix kernel With neat diagram, describe the structure of index node and discuss how kernel manipulates it. Explain how a file is mounted and unmounted from file structure What is region? state any 3 region system calls that are invoked by a process, one when getting hold a region, one during execution and one while relinquishing it back.

26. 27. 28. 29. 30.

What is the function of a clock interrupt handler? Detail any 3 function along with the system calls and their data structures Discuss the tasks of terminal derivers of Unix kernels with suitable algorithms What is page fault? Discuss the page fault related to validity fault and details all the cases when the page is faulted. Discuss the synchronization using semaphores in detail. Describe what are sockets and their use in network programming. 9

Karunya University | Dept. of Information Technology

Unix Architecture
31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 61. 62. Explain about Buffer concepts. Draw and explain the block diagram of system kernel. a. Explain in detail about file system. b. Describe about internal representation of files. Discuss any 4 system calls related to file. Explain in detail about process scheduling. Explain about process states. a. Write short notes on demand paging. b. Explain about I/O subsystem. Explain Page replacement policies. Explain in detail about sockets.

Question Bank

How are messages used for interprocess communications? Explain the architecture of UNIX operating system. a. Explain the structure of the Buffer Pool. b. Write about reading and writing of Disk blocks Describe about System calls for the file system. Explain the structure of a regular file. Explain in detail about states of a processor. Write the algorithms for sleep and awake. Write short notes on: a. Swapping b. Demand Paging Explain about page replacement policy. Explain about inter process communication. Explain how message queues are implemented in UNIX. Explain the architecture of UNIX operating system with neat block diagram and also explain the process state transition. What are the five typical scenarios the kernel may follow in getblk to allocate a buffer for a disk block? Explain the first two scenarios with suitable example.

63. 64.

a. Explain the algorithm for conversion of a path name to an inode. b. Write an algorithm for freeing inode Write and explain an algorithm for opening and reading a file. 10

Karunya University | Dept. of Information Technology

Unix Architecture
65. 66. 67. 68. 69.

Question Bank

Write and explain an algorithm for allocating a region and attaching a region to a process. Describe an algorithm for process creation. a. Explain how the kernel puts characters onto a clist with suitable example b. Describe an algorithm for reading a terminal. Describe an algorithm for swapper and explain the operation of swapping with suitable example. a. What are the three mechanisms of unix system V IPC package? Explain the common properties of those three mechanisms. b. What is the purpose of shmat and shmdt system call? Explain.

70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85.

What is the purpose of sockets? Explain the various system calls used for socket mechanism. a. b. List any 4 Unix commands. Write their format and usage with example. Write an algorithm to copy a file.

Explain the architecture of the Unix operating system. a. Write an algorithm to convert the path name into inode. b. Write about super Block. a. Write an algorithm to read the content of a file. b. Write an algorithm to change the current directory. With a neat diagram, explain the process states and transition. Briefly explain process scheduling. Explain Demand Paging. a. Write an algorithm for closing a device. b. How will you push a module into a stream? What is semaphore? Write the algorithm for semaphore operations. Explain about sockets. Explain the process of Reading and Writing Disk Blocks with suitable algorithms. Discuss the architecture of UNIX Operating System with necessary diagram. What are inodes? How are they accessed and released? Write the algorithm for Creating Pipes. How are open and close operations performed on pipes? Explain Context of a Process. 11

Karunya University | Dept. of Information Technology

Unix Architecture
86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107.

Question Bank

Explain in detail how signals are handled using suitable algorithms. Elaborate in detail about Demand Paging. Write notes on Terminal Drivers. Explain Semaphores. Discuss in detail about Sockets. Explain about state transitions in process with neat diagrams. Explain about reading and writing disk blocks. a. Write down the fields the disk inodes consists of. b. Explain about the directories with its layout Explain in detail about file creation with algorithm. a. Explain about interrupts and exceptions. b. Explain about copying data between system and user address space a. Write down the algorithm for allocation of text regions. b. Write a program for using times. Explain allocation of swap space with algorithm and diagram. Write the algorithm for opening a device and closing a device. Write down the algorithm for Semaphore operation. Discuss in detail about sockets. a. Explain in detail about UNIX System Architecture. b. Briefly explain about UNIX System Structure. Explain in detail about Unix system concepts. Explain in detail about the structure of regular file. a. Briefly explain file creation concepts. b. Write short notes on File locking and Record Locking. Describe the state transition that a process undergoes during its lifetime. Discuss the context of a process in detail. Write short notes on a. Allocation of swap space. b. Swapping processes out.

108. 109. 110.

a. Explain briefly the concepts involved in driver interface. b. Write short notes on terminal drivers. Explain the concepts in system V IPC. How is network communication done in unix operating system. 12

Karunya University | Dept. of Information Technology

Unix Architecture
111. Elaborate the architecture of UNIX Operating System. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. Discuss about various Scenarios for Retrieval of a Buffer. Write in detail about INODE. Discuss about PIPES in detail Depict the complete set of Process States and explain.

Question Bank

Explain about Fair Share Scheduler with suitable examples. Write in detail about Swapping. Explain in detail about Streams. Explain in detail about Messages in System V IPC with sample coding. Write in detail about all TCP Socket system calls with a client server implementation code. Draw and explain the architecture of the Unix Operating System. a. Describe about Process subsystem. b. Write an algorithm for reading a disk block. Explain the structure of a regular file. Develop an algorithm for reading a file. Discuss in detail about its working.

125. Elaborate on Lifetime of a process with a neat diagram. 126. Develop an algorithm for Process creation. 127. Describe the algorithm for allocating space from Maps. 128. Discuss the procedure for opening a device. 129. How is process synchronization done using semaphores? Explain. 130. Give the syntax and meaning of any five system calls associated with sockets. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. Explain about UNIX architecture and its features. Discuss about Shell Control Structure in detail. Discuss about inode concepts in UNIX. Explain about UNIX system calls file I/O. Explain UNIX system calls for process management. Discuss about Time system calls in UNIX. Explain about Memory management in UNIX. Explain about how Demand paging implemented in UNIX. Give an account on IPC mechanisms in UNIX. Explain about various Socket system calls for UNIX. With a neat diagram explain the architecture of the UNIX operating system. 13

Karunya University | Dept. of Information Technology

Unix Architecture
142. 143. 144. 145. 146. 147. 148. 149. 150. 151. 152. 153. 154. 155. 156. 157. 158. 159. 160. a. Discuss the structure of a buffer header. b. Write an algorithm to allocate a buffer. a. List out the contents of a super block.

Question Bank

b. Write an algorithm to convert a pathname to an inode. a. Write an algorithm for creating a file. b. What does disk inode contain? Write a process diagram to explain process states and transitions. Explain Signals. Write an algorithm for handling signals. Explain swapping with suitable example. Write algorithms to open a device and close a device. Explain Semaphores in detail. Explain Shared Memory in detail. Describe internet service provider and internet backbones. Explain the various transmission Medias. Explain domain name system. Describe transmission control protocol. Explain TCP congestion control. What are the principles of reliable data transfer? Explain the same. Explain link state routing algorithm and hierarchical routing algorithm. Compare virtual circuits and datagram networks. Explain error detection and correction techniques. Describe multiple access protocol.

14

Karunya University | Dept. of Information Technology

You might also like