1. Home
  2. Explore
  3. Computer Science
  4. Operating System Components

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Operating System Components

  • 49Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: OS Structure

What are the two main components of an operating system, and what is the basic role of each?

49 questions

  1. 1

    What are the two main components of an operating system, and what is the basic role of each?

    Model answer

    The two components are user space, where user applications run, and the kernel, which manages access to hardware and core system functions.

    Explanation

    Together, user space and the kernel form the operating system, with the kernel mediating between applications and hardware.

  2. 2

    What kinds of activity take place in user space?

    Model answer

    User space provides an environment for users and developers to run and interact with applications.

    Explanation

    Applications run in user space rather than directly controlling hardware.

  3. 3

    Why do applications rely on the kernel to access hardware?

    Model answer

    Applications in user space do not have direct hardware access, so they request the kernel to perform hardware-related tasks.

    Explanation

    The kernel has hardware access and carries out requests on behalf of user-space applications.

  4. 4

    What do the terms GUI and CLI refer to in the context of user space?

    Model answer

    They are two ways users interact with the system: a graphical user interface and a command-line interface.

    Explanation

    Both provide ways for users to work with applications and system functions.

  5. 5

    What does GUI stand for, and how does a user typically interact with one?

    Model answer

    GUI stands for graphical user interface. A user typically interacts with it through visual elements, such as clicking icons with a mouse.

    Explanation

    A desktop, icons, and buttons are examples of graphical interface elements.

  6. 6

    What does CLI stand for, and how does a user typically interact with one?

    Model answer

    CLI stands for command-line interface. A user types commands that the system receives and executes.

    Explanation

    A terminal or Windows PowerShell provides a command-line way to interact with the system.

  7. 7

    How can a task performed through a GUI also be performed through a CLI?

    Model answer

    The same task can often be initiated either by using a graphical control or by entering a command that requests the corresponding operation.

    Explanation

    For example, a user can create a folder using a GUI button or a command-line instruction.

  8. 8

    How does the mkdir example illustrate how a command-line request creates a directory?

    Model answer

    The user enters mkdir, and the system directs the file-management function to create a directory.

    Explanation

    The command is a way to request a file-system operation from the operating system.

  9. 9

    What is a shell in relation to the command line?

    Model answer

    A shell is an implementation of the CLI that receives commands from users and gets them executed.

    Explanation

    The shell provides the command-based interface through which a user can request system operations.

  10. 10

    What role does the kernel play when a user-space request requires computation?

    Model answer

    The kernel requests the required work from hardware, such as CPU computation, and helps the system complete the request.

    Explanation

    For example, printing text involves computation for which the kernel requests CPU cycles.

  11. 11

    What are the principal responsibilities of process management?

    Model answer

    Process management includes creating and terminating processes and coordinating their execution.

    Explanation

    Scheduling, synchronization, and other process-related operations are also handled as part of process management.

  12. 12

    What is the purpose of process and thread scheduling?

    Model answer

    Scheduling determines which processes or threads execute and when, aiming to use system resources effectively.

    Explanation

    The content identifies high-priority work, maximum utilization, and avoiding starvation as scheduling concerns.

  13. 13

    What is process starvation, and what scheduling goal does it illustrate?

    Model answer

    Process starvation is a situation in which a process does not get a chance to execute; scheduling should prevent it.

    Explanation

    Avoiding starvation is one of the concerns mentioned in scheduling processes and threads.

  14. 14

    Which switching activities are associated with kernel process management?

    Model answer

    The kernel handles context switching and time switching as part of managing process execution.

    Explanation

    These activities help coordinate execution among processes.

  15. 15

    Why does the kernel need to synchronize processes?

    Model answer

    Synchronization coordinates processes so their activities can be managed appropriately when they execute.

    Explanation

    The kernel's process-management responsibilities include synchronizing processes.

  16. 16

    What does memory management do when a process needs memory or releases it?

    Model answer

    It allocates memory for processes and deallocates memory when it is no longer needed.

    Explanation

    These operations help the operating system manage available RAM among jobs.

  17. 17

    Why must the kernel track which memory areas are free?

    Model answer

    It needs to know which areas are available so it can allocate space to new jobs and manage released space.

    Explanation

    When a process frees memory, memory management keeps track of the resulting vacant area.

  18. 18

    What file-management operations are assigned to the kernel?

    Model answer

    The kernel's file management creates and deletes files and manages directories.

    Explanation

    File management also maintains the organization of files in the directory structure.

  19. 19

    How is a directory structure organized on disk according to the content?

    Model answer

    It is organized hierarchically as a tree, with a root directory and subdirectories that can contain further folders and files.

    Explanation

    The example describes folders branching from the root and containing additional folders or files.

  20. 20

    Why is representing directories as a tree useful for organizing and locating files?

    Model answer

    A tree provides a manageable hierarchy that users can follow through directories to reach a file.

    Explanation

    The content illustrates searching by moving from the root through successive folders.

  21. 21

    What is the kernel's general responsibility for input and output (I/O)?

    Model answer

    It manages and controls I/O operations and I/O devices.

    Explanation

    This includes responding to connected devices and providing ways for the system to access them.

  22. 22

    What can the kernel do when a user connects a device such as a USB drive?

    Model answer

    It can detect the device, notify the system that it has been added, and provide a way to access it.

    Explanation

    The notification can be passed to user space so the device can be made accessible through the GUI.

  23. 23

    What is spooling, and how does print spooling illustrate it?

    Model answer

    Spooling stores or queues data for jobs in advance; print spooling can hold multiple print jobs until a slower printer processes them.

    Explanation

    The example contrasts a user submitting several PDFs quickly with the printer processing them more slowly.

  24. 24

    What is buffering, and in what situation is it useful?

    Model answer

    Buffering holds data in advance for use during a job or process, such as data that will be needed shortly.

    Explanation

    The content gives YouTube as an example of buffering data ahead of its use.

  25. 25

    Which three I/O-related techniques are identified as kernel responsibilities?

    Model answer

    They are spooling, buffering, and caching.

    Explanation

    The content identifies all three as I/O-management activities.

  26. 26

    What are user mode and kernel mode, and how do their access levels differ?

    Model answer

    They are two operating modes: user mode handles user-level work, while kernel mode has greater access to hardware and performs kernel-level work.

    Explanation

    The operating system keeps these modes separate and switches between them when necessary.

  27. 27

    What is an interrupt in the context of operating systems?

    Model answer

    An interrupt is a signal that notifies the operating system about an event or a need to change the current execution.

    Explanation

    An interrupt can prompt the system to pause or redirect work to respond to the event.

  28. 28

    How does a software interrupt differ from a hardware interrupt?

    Model answer

    A software interrupt is generated by software or the operating system, while a hardware interrupt is generated by hardware.

    Explanation

    The content contrasts an OS-generated interrupt with an interrupt from a hardware problem such as RAM failure.

  29. 29

    How can a hardware problem such as RAM failure use an interrupt?

    Model answer

    The hardware can send an interrupt to notify the operating system of the problem, prompting it to stop or redirect execution.

    Explanation

    The interrupt communicates an event that requires the operating system's attention.

  30. 30

    Trace how entering a directory-creation command can cause a switch from user mode to kernel mode and back.

    Model answer

    The command is entered in user mode; after it is submitted, the system requests the file-management work in kernel mode, then returns feedback to user mode when the directory is created.

    Explanation

    This illustrates how a user-space request is handled by the kernel and then reported back to the user.

  31. 31

    What mechanism is described as causing switches between user mode and kernel mode?

    Model answer

    Software interrupts are described as the mechanism for switching between user mode and kernel mode.

    Explanation

    A user request that requires kernel work can trigger this transition.

  32. 32

    What defines a monolithic kernel?

    Model answer

    A monolithic kernel keeps the operating system's major functions, including process, memory, file, and I/O management, within the kernel.

    Explanation

    The content characterizes it as an arrangement in which all four management functions are in the kernel.

  33. 33

    Why can communication between components be efficient in a monolithic kernel?

    Model answer

    The components are together in the kernel, so communication between them is described as efficient.

    Explanation

    This centralization is presented as a key advantage of the monolithic design.

  34. 34

    What are two disadvantages of a monolithic kernel?

    Model answer

    It can be bulky and less reliable because a failure in one component can affect the interconnected kernel as a whole.

    Explanation

    For example, a problem in memory management could cause the kernel to stop working.

  35. 35

    Name examples of operating systems identified as using a monolithic kernel.

    Model answer

    Linux, Unix, and MS-DOS are given as examples.

    Explanation

    These systems are listed as examples of the monolithic design.

  36. 36

    What defines a microkernel design?

    Model answer

    A microkernel keeps core functions, such as process and memory management, in the kernel while placing other functions, such as file and I/O management, in user space.

    Explanation

    This divides responsibilities between the smaller kernel and user space.

  37. 37

    What reliability and size advantages are associated with a microkernel?

    Model answer

    A microkernel is less bulky and can be more reliable and stable because failures in user-space functions need not stop the core kernel.

    Explanation

    The design reduces the risk that a failure in file or I/O management will disable the kernel's main functions.

  38. 38

    Why can a microkernel have lower performance than a monolithic kernel?

    Model answer

    Its functions are divided between user space and kernel space, so requests can require repeated mode switches that add overhead.

    Explanation

    Each switch has a cost, and repeated transitions can reduce performance.

  39. 39

    Name examples of operating systems identified as using a microkernel.

    Model answer

    L4Linux, Symbian OS, and MINIX are given as examples.

    Explanation

    These are the microkernel examples listed in the content.

  40. 40

    What defines a hybrid kernel?

    Model answer

    A hybrid kernel combines aspects of monolithic and microkernel designs, keeping process, memory, and I/O management in the kernel while placing file management in user space.

    Explanation

    This arrangement is presented as a combined approach to the two designs.

  41. 41

    How does a hybrid kernel seek to reduce the mode-switching overhead associated with a microkernel?

    Model answer

    It keeps I/O management in the kernel along with process and memory management, reducing the need to switch modes for some operations.

    Explanation

    The content says that this arrangement reduces switching overhead and can improve speed.

  42. 42

    Which advantages of monolithic and microkernel designs does the hybrid approach aim to combine?

    Model answer

    It aims to combine monolithic-kernel speed with microkernel modularity and stability.

    Explanation

    The hybrid design is described as using the speed and design of monolithic kernels and the modularity and stability of microkernels.

  43. 43

    Name operating systems identified as examples of the hybrid-kernel approach.

    Model answer

    Mac OS and Windows NT, including Windows 7 and Windows 10 in the content's examples, are identified.

    Explanation

    These systems are presented as examples of the combined approach.

  44. 44

    Which two additional kernel types are named without further explanation?

    Model answer

    Nano kernels and exokernels are named.

    Explanation

    The content mentions these types but does not describe their structure or behavior.

  45. 45

    Why may two processes need interprocess communication even when they are isolated?

    Model answer

    Processes have separate resources and may operate independently, but they sometimes still need to exchange information.

    Explanation

    Interprocess communication provides ways for otherwise separate processes to communicate.

  46. 46

    What does IPC stand for, and what is its purpose?

    Model answer

    IPC stands for interprocess communication; it provides methods for processes to exchange information.

    Explanation

    The content describes IPC as a way for separate processes to communicate.

  47. 47

    How does the shared-memory method of IPC work?

    Model answer

    Two processes use a shared memory area: one writes data there, and the other reads it.

    Explanation

    The example has one process write a value into the shared area for another process to retrieve.

  48. 48

    How does message passing differ from shared memory as an IPC method?

    Model answer

    Message passing uses an operating-system-provided method to send information between processes, whereas shared memory has processes exchange information through a shared area.

    Explanation

    The content describes message passing through a channel or pipe and shared memory through a common memory space.

  49. 49

    What operating-system facilities can be used to support message passing?

    Model answer

    The operating system provides methods or functions, including system calls, that processes can use to pass messages through a communication channel.

    Explanation

    The content also refers to protocols for carrying out this communication.

1 of 49
Question 1 of 49

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent