पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 15 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
Operating system की client-server बनावट में kernel का काम क्या होता है?
In the client-server structure of an operating system, what is the role of the kernel?
Aसारी सेवाएँ ख़ुद देना और server को ख़ाली बैठाए रखनाTo perform every service itself and keep the servers idle
BServer program को चलाने से पहले उन्हें compile करनाTo compile the server programs before running them
CClient प्रक्रियाओं और server प्रक्रियाओं के बीच संदेशों को जाँचना और पहुँचानाTo validate and deliver messages between client processes and server processes
Dसभी client का data हमेशा के लिए disk पर रखनाTo store all client data permanently on disk
सही उत्तर / Answer: (C)
हल / Solution
Client-server बनावट में काम दो तरह की प्रक्रियाओं में बँटा होता है: सेवा माँगने वाली client और सेवा देने वाली server। kernel ख़ुद सेवा नहीं देता, वह बीच का डाकिया है — संदेश की जाँच करता है और उसे सही server तक पहुँचाकर उत्तर लौटाता है। यही कारण है कि ऐसी बनावट नेटवर्क पर फैलाना आसान हो जाता है: client और server अलग मशीनों पर हों तो भी संदेश का तरीक़ा वही रहता है। Compile करना compiler का काम है।
In a client-server structure the work is divided between two kinds of processes: clients that request a service and servers that provide it. The kernel does not perform the service itself but acts as a postman, checking each message, delivering it to the correct server and carrying the reply back. That is why such a design extends easily over a network: the message method is unchanged when client and server sit on different machines. Compiling is a compiler's job.
प्रश्न 2उत्तर + हल
Virtual machine में जब guest operating system कोई privileged instruction चलाता है, तो उस instruction का क्या होता है?
In a virtual machine, what happens when the guest operating system executes a privileged instruction?
Aवह पूरे अधिकार के साथ सीधे hardware पर चल जाता हैIt executes directly on the hardware with full privilege
Bवह virtual machine monitor पर trap करता है, जो उस guest के लिए उसका असर नक़ल कर देता हैIt traps to the virtual machine monitor, which emulates its effect for that guest
Cवह किसी दूसरे guest operating system को सौंप दिया जाता हैIt is handed over to another guest operating system
Dउसे ठुकरा दिया जाता है और virtual machine बंद हो जाती हैIt is rejected and the virtual machine shuts down
सही उत्तर / Answer: (B)
हल / Solution
Virtual machine में सबसे अधिकार वाला स्तर virtual machine monitor के पास होता है; guest operating system उससे कम अधिकार पर चलता है, चाहे वह ख़ुद को kernel mode में समझता रहे। इसलिए guest जैसे ही कोई privileged instruction चलाता है, hardware trap उठाकर नियंत्रण monitor को देता है, और monitor उस instruction का असर सिर्फ़ उसी guest की नक़ली मशीन पर उतारता है। इससे एक guest दूसरे को या असली hardware को बिगाड़ नहीं पाता।
In a virtual machine the most privileged level belongs to the virtual machine monitor, and the guest operating system runs at a lower privilege even though it believes it is in kernel mode. So as soon as the guest executes a privileged instruction the hardware raises a trap and gives control to the monitor, which applies the effect only to that guest's simulated machine. This keeps one guest from damaging another or the real hardware.
प्रश्न 3उत्तर + हल
Windows NT को hybrid kernel क्यों कहा जाता है?
Why is Windows NT described as a hybrid kernel?
Aक्योंकि यह hard disk और network, दोनों से boot हो सकता हैBecause it can boot from either a hard disk or a network
Bक्योंकि यह 32-bit और 64-bit, दोनों processor पर चलता हैBecause it runs on both 32-bit and 64-bit processors
Cक्योंकि इसमें दो स्वतंत्र kernel हैं जो बारी-बारी चलते हैंBecause it contains two independent kernels that run in turn
Dक्योंकि इसकी बनावट microkernel जैसी module वाली है, पर रफ़्तार के लिए मुख्य subsystem user space के बजाय kernel mode में चलते हैंBecause it keeps a microkernel-like modular organisation but runs its main subsystems in kernel mode instead of user space
सही उत्तर / Answer: (D)
हल / Solution
Hybrid शब्द बनावट का है, boot या processor का नहीं। Windows NT की रचना microkernel के ढंग पर हुई — साफ़ अलग module और स्तर — पर शुद्ध microkernel में हर system call पर संदेश और mode switch का ख़र्च बहुत पड़ता। इसलिए graphics, file system और driver जैसे रफ़्तार-संवेदी subsystem kernel mode के भीतर रखे गए। दो विचारों का यही मेल hybrid कहलाता है; दो स्वतंत्र kernel जैसी कोई बात इसमें नहीं है।
The word hybrid refers to structure, not to booting or to processors. Windows NT was designed in a microkernel style, with clearly separated modules and levels, but a pure microkernel pays a heavy cost in messages and mode switches on every system call. Speed-sensitive subsystems such as graphics, the file system and drivers were therefore kept inside kernel mode. This blend of two ideas is what hybrid means; there are not two independent kernels.
प्रश्न 4उत्तर + हल
कोई user program operating system से सेवा किस क्रम से पाता है?
Which sequence correctly describes how a user program obtains a service from the operating system?
ALibrary का wrapper trap instruction चलाता है, mode बदलकर kernel हो जाता है, system call number से सही kernel दिनचर्या चुनी जाती है, और परिणाम लेकर नियंत्रण user mode में लौटता हैThe library wrapper executes a trap instruction, the mode switches to kernel, the system call number selects the right kernel routine, and control returns to user mode with the result
BProgram सीधे device के register में लिखता है, फिर kernel को ख़बर करता हैThe program writes straight into the device register and then informs the kernel
CKernel हर user program से बारी-बारी पूछता रहता है कि उसे कोई सेवा चाहिए या नहींThe kernel keeps asking each user program in turn whether it needs a service
DCompiler kernel की दिनचर्या को program में ही जोड़ देता है, इसलिए mode बदलने की ज़रूरत नहीं पड़तीThe compiler links the kernel routine into the program, so no mode switch is needed
सही उत्तर / Answer: (A)
हल / Solution
सेवा का रास्ता तय है: program library का wrapper बुलाता है, wrapper सेवा का number रखकर trap चलाता है, hardware mode बदलकर kernel के प्रवेश-बिंदु पर पहुँचाता है, वहाँ number से सही दिनचर्या चुनी जाती है, काम होने पर परिणाम लौटाकर mode फिर user हो जाता है। User program device के register में सीधे नहीं लिख सकता, वह privileged काम है। Kernel बारी-बारी पूछता नहीं, वह प्रतीक्षा करता है। Mode बदलना compiler टाल नहीं सकता।
The path is fixed: the program calls a library wrapper, the wrapper places the service number and executes a trap, the hardware switches mode and lands at a kernel entry point, the number selects the correct routine, and once the work is done the result is returned and the mode reverts to user. A user program cannot write into a device register directly, which is privileged. The kernel waits rather than polling, and no compiler avoids the mode switch.
प्रश्न 5उत्तर + हल
Microkernel के भीतर आम तौर पर कौन-से काम रखे जाते हैं?
Which set of functions is typically retained inside a microkernel?
AFile system, device driver और window managerThe file system, device drivers and the window manager
BCompiler, linker और loaderCompilers, linkers and loaders
Cप्रक्रियाओं के बीच संवाद (IPC), कम-से-कम process scheduling, और बुनियादी address space प्रबंधनInter-process communication, minimal process scheduling and basic address space management
DNetwork protocol stack और database सेवाएँNetwork protocol stacks and database services
सही उत्तर / Answer: (C)
हल / Solution
Microkernel में सिर्फ़ वही काम बचते हैं जो बाहर रखे ही नहीं जा सकते — प्रक्रियाओं के बीच संदेश पहुँचाना, कम-से-कम process scheduling, और address space तथा memory की बुनियादी रखवाली। File system, device driver और window manager user space के server बन जाते हैं। Compiler, linker और loader तो operating system के बाहर के साधारण program हैं, और network तथा database की सेवाएँ भी kernel के बाहर ही चलती हैं।
A microkernel keeps only what cannot be moved out: delivering messages between processes, a minimum of process scheduling, and basic protection of address spaces and memory. The file system, device drivers and the window manager all become user space servers. Compilers, linkers and loaders are ordinary programs outside the operating system altogether, and networking and database services likewise run outside the kernel in a microkernel design.
प्रश्न 6उत्तर + हल
Type 2 hypervisor, type 1 hypervisor से किस बात में अलग है?
In what way does a type 2 hypervisor differ from a type 1 hypervisor?
Aयह सीधे नंगे hardware पर चलता हैIt runs directly on the bare hardware
Bयह पहले से चल रहे किसी host operating system के ऊपर एक application की तरह चलता हैIt runs as an application on top of an existing host operating system
Cयह एक से अधिक virtual machine बना ही नहीं सकताIt cannot create more than one virtual machine
Dइसमें किसी guest operating system की ज़रूरत नहीं पड़तीIt needs no guest operating system at all
सही उत्तर / Answer: (B)
हल / Solution
Type 2 hypervisor को hosted कहा जाता है, क्योंकि वह पहले से चल रहे host operating system के ऊपर साधारण application की तरह चढ़ता है और उसी से hardware की सेवाएँ लेता है। इससे उसे लगाना आसान रहता है, पर बीच की एक परत जुड़ जाने से रफ़्तार type 1 से कम पड़ती है। नंगे hardware पर सीधा चलना type 1 की पहचान है। दोनों कई virtual machine बना सकते हैं और guest operating system चाहिए ही होता है।
A type 2 hypervisor is called hosted because it is installed like an ordinary application on top of an already running host operating system and obtains hardware services through it. That makes it easy to install, but the extra intervening layer leaves it slower than type 1. Running straight on bare hardware is what identifies type 1. Both kinds can create several virtual machines, and both still require a guest operating system.
प्रश्न 7उत्तर + हल
Microkernel में जब कोई client program किसी server program से सेवा चाहता है, तो दोनों के बीच बात किस तरह होती है?
In a microkernel, when a client program needs a service from a server program, how do the two communicate?
Akernel mode के साझा global variable के ज़रिएThrough shared kernel mode global variables
Bserver की code में सीधे function call करकेBy making direct function calls into the server's code
Cdisk पर एक file लिखकरBy writing a file on the disk
Dसंदेश भेजकर, जिन्हें microkernel एक से दूसरे तक पहुँचाता हैBy passing messages, which the microkernel delivers from one to the other
सही उत्तर / Answer: (D)
हल / Solution
Microkernel में client और server दोनों user space की अलग प्रक्रियाएँ हैं और एक-दूसरे की memory नहीं छू सकतीं। इसलिए बातचीत संदेश से होती है: client संदेश बनाकर microkernel को देता है, और microkernel उसे सही server तक पहुँचाकर उत्तर वापस लाता है। यही संवाद-प्रबंध (IPC) microkernel का मुख्य काम है। साझा variable या सीधे function call monolithic बनावट में चलते हैं, जहाँ सब एक ही address space में होते हैं।
In a microkernel the client and the server are separate user space processes and cannot touch each other's memory. Communication therefore happens by messages: the client hands a message to the microkernel, which delivers it to the right server and carries the reply back. Providing this inter-process communication is the microkernel's main job. Shared variables or direct function calls work in a monolithic design, where everything sits in one address space.
प्रश्न 8उत्तर + हल
कड़ाई से स्तरित (strictly layered) operating system की एक हानि कौन-सी है?
Which of the following is a drawback of a strictly layered operating system?
Aएक ही request को कई स्तरों से गुज़रना पड़ता है, जिससे हर system call पर बोझ बढ़ जाता हैA request must pass through many layers, adding overhead to every system call
Bस्तरों को अलग-अलग जाँचा नहीं जा सकताThe layers cannot be debugged separately
Cयह एक से अधिक user का सहारा नहीं दे सकताIt cannot support more than one user
DDevice driver किसी भी स्तर पर रखे नहीं जा सकतेDevice drivers cannot be placed in any layer
सही उत्तर / Answer: (A)
हल / Solution
स्तरित बनावट में एक छोटी request भी ऊपर से नीचे तक कई स्तरों से गुज़रती है, और हर स्तर पर मानक जाँच तथा parameter की नक़ल जुड़ती जाती है। इस जमा हुए बोझ से system call monolithic kernel वाले सीधे रास्ते से धीमा पड़ जाता है। दूसरी कठिनाई यह है कि कौन-सा काम किस स्तर पर रखा जाए, यह तय करना ही मुश्किल है। स्तर अलग जाँचे जा सकते हैं — यही तो इसका लाभ है।
In a layered structure even a small request travels down through several layers, and each layer adds its own checking and copying of parameters. This accumulated overhead makes a system call slower than the direct path inside a monolithic kernel. A second difficulty is deciding which function belongs in which layer at all. Layers certainly can be debugged separately, since that is precisely the advantage of the design rather than a drawback.
प्रश्न 9उत्तर + हल
Operating system के layered design का मुख्य लाभ क्या है?
What is the principal advantage of the layered approach to operating system design?
Aइससे system call की ज़रूरत ही ख़त्म हो जाती हैIt removes the need for system calls
Bयह हर काम को monolithic kernel से तेज़ कर देता हैIt makes every operation faster than a monolithic kernel
Cहर स्तर को सिर्फ़ अपने नीचे वाले स्तरों के सहारे बनाया, जाँचा और सुधारा जा सकता हैEach layer can be built, debugged and verified using only the layers below it
Dइससे operating system बिना kernel के चल सकता हैIt lets the operating system run without any kernel
सही उत्तर / Answer: (C)
हल / Solution
Layered design का सबसे बड़ा लाभ बनाने और जाँचने में आसानी है। हर स्तर सिर्फ़ अपने नीचे वाले स्तरों की सेवाओं का उपयोग करता है, इसलिए उसे अलग से जाँचा जा सकता है — नीचे के स्तर पहले ही सही सिद्ध हो चुके होते हैं, और कोई ग़लती मिले तो वह उसी स्तर की होगी। System call की ज़रूरत बनी रहती है, kernel भी रहता है, और स्तरों से गुज़रने का बोझ उलटे रफ़्तार घटाता है।
The biggest gain from layered design is ease of construction and debugging. Each layer uses only the services of the layers below it, so it can be tested on its own: the lower layers are already known to be correct, and any fault that appears must belong to the layer being tested. System calls are still needed, a kernel still exists, and passing through the layers actually reduces speed rather than increasing it.
प्रश्न 10उत्तर + हल
Exokernel की बनावट का मूल विचार क्या है?
What is the central design idea of an exokernel?
AOperating system की हर सेवा को kernel के भीतर ले आनाTo bring every operating system service inside the kernel
Bसंसाधनों की सुरक्षा को उनके प्रबंधन से अलग करना, जिससे application ख़ुद hardware संसाधन सँभाल सकेंTo separate protection of resources from their management, letting applications manage hardware resources themselves
Cहर guest operating system के लिए पूरी मशीन की नक़ल बनानाTo emulate a complete machine for each guest operating system
DOperating system को कड़े क्रम वाले स्तरों में बाँटनाTo divide the operating system into strictly ordered layers
सही उत्तर / Answer: (B)
हल / Solution
Exokernel का विचार है कि kernel सिर्फ़ संसाधनों की रखवाली करे — किसको क्या मिला है, यह तय और सुरक्षित रखे — और उनका प्रबंधन application के हवाले छोड़ दे। इससे हर application अपनी ज़रूरत के हिसाब से memory या disk की नीति चुन सकती है, operating system की बनी-बनाई नीति मानने की मजबूरी नहीं रहती। सब सेवाएँ kernel में भरना monolithic है, पूरी मशीन की नक़ल बनाना virtual machine है, और स्तरों में बाँटना layered design है।
The exokernel idea is that the kernel should only guard resources, deciding and protecting who holds what, and should leave their management to the applications. Each application can then choose its own policy for memory or disk instead of being forced to accept one built into the operating system. Packing all services into the kernel is the monolithic approach, emulating a whole machine is virtualisation, and dividing the system into ordered levels is layered design.
आगे के 15 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
User mode में चल रही कोई process किसी privileged instruction को चलाने की कोशिश करे तो क्या होता है?
What happens when a process running in user mode attempts to execute a privileged instruction?
AInstruction सामान्य रूप से चल जाता हैThe instruction executes normally
BProcess अपने-आप kernel mode में पदोन्नत हो जाती हैThe process is automatically promoted to kernel mode
CInstruction चुपचाप छोड़ दिया जाता है और अगला चल पड़ता हैThe instruction is silently skipped and the next one runs
DHardware उसे अवैध instruction मानकर trap करता है और नियंत्रण operating system के पास चला जाता हैThe hardware traps it as an illegal instruction and control passes to the operating system
Monolithic kernel बनावट की एक बड़ी हानि कौन-सी है?
Which of the following is a major disadvantage of the monolithic kernel structure?
Aयह file system दे ही नहीं सकतीIt cannot provide a file system
Bइसमें system call चलाया नहीं जा सकताSystem calls cannot be executed in it
Cकोई एक बिगड़ा हिस्सा, जैसे एक ही device driver, पूरे system को गिरा सकता हैOne faulty component, such as a single device driver, can crash the entire system
Dइसमें हर सेवा को संदेश भेजकर ही बात करनी पड़ती हैEvery service in it must communicate only by passing messages
एक ही सेवा देने में monolithic kernel आम तौर पर microkernel से तेज़ क्यों होता है?
Why is a monolithic kernel generally faster than a microkernel for the same service?
Aक्योंकि वह तेज़ processor पर ही चलता हैBecause it runs only on a faster processor
Bक्योंकि उसके हिस्से एक ही address space में सीधे function call से बात करते हैं, संदेश भेजने की ज़रूरत नहीं पड़तीBecause its components share one address space and call each other directly, so no message passing is needed
Cक्योंकि वह कोई I/O काम नहीं करताBecause it performs no I/O operations at all
Dक्योंकि वह सभी user program को kernel mode में चलाता हैBecause it runs all user programs in kernel mode
Microkernel बनावट की रफ़्तार के पक्ष में मुख्य हानि क्या है?
What is the main performance drawback of a microkernel architecture?
Aयह multiprogramming का सहारा नहीं दे सकतीIt cannot support multiprogramming
Bहर नए device के लिए पूरा kernel दोबारा बनाना पड़ता हैThe whole kernel must be rebuilt for every new device
Cयह multiprocessor hardware पर चल नहीं सकतीIt cannot run on multiprocessor hardware
DUser space के server के बीच संदेश भेजने और बार-बार mode switch होने का बोझThe overhead of message passing and repeated mode switches between user space servers
Windows NT परिवार के operating system किस kernel बनावट का प्रयोग करते हैं?
The Windows NT family of operating systems uses which kernel structure?
Aशुद्ध microkernel, जिसमें हर सेवा user space में होती हैA pure microkernel in which every service runs in user space
BMS-DOS जैसा एक-user, एक-कार्य वाला साधारण kernelA simple single-user, single-tasking kernel like MS-DOS
CHybrid — microkernel जैसी बनावट, पर कई मुख्य subsystem kernel mode मेंA hybrid kernel: microkernel-like organisation, but major subsystems in kernel mode