Logo/

Untitled Flashcards

Log in

Made with ScholarlyMake flashcards like these from your own notes

Untitled Flashcards

Questions and answers

281 cards
  1. Question:Operating System Definiton

    Answer:The operating system is the kernel program and nothing more.

  2. Question:What are the components of a computer system?

    Answer:Hardware and software

  3. Question:What is included in hardware?

    Answer:Processors, I/O devices, memory, and secondary storage

  4. Question:What is included in software?

    Answer:Operating system and applications

  5. Question:What is the purpose of the operating system?

    Answer:To interact directly with the hardware

  6. Question:What is included in the application layer of software?

    Answer:Software development tools, web browsers, media editors and viewers, shells, commands, etc.

  7. Question:Where is user data located in the computer system?

    Answer:In the application layer

  8. Question:Layered Structure of Computer System

    Answer:The components of a computer system form a sequence of layers: users (people and/or devices) application layer (applications, shells, commands) operating system hardware layer (processors, memory,devices, etc.) Only adjacent layers have interactions with each other. For example, • applications do not directly communicate with or control hardware, and • users only interact with the application layer (which includes shells like bash in Linux.)

  9. Question:Users

    Answer:People and/or devices that interact with the computer system.

  10. Question:Application Layer

    Answer:Layer of a computer system that includes applications, shells, and commands.

  11. Question:Operating System

    Answer:Software that manages and controls the computer hardware and provides services to applications.

  12. Question:Hardware Layer

    Answer:Layer of a computer system that includes processors, memory, devices, etc.

  13. Question:Operating System Requirements

    Answer:The operating system has three important responsibilities: 1. Control hardware resources 2. Enable and control execution of software 3. Allow users to develop, run, and manage applications and data

  14. Question:User Requirements

    Answer:Users want efficient use of time, secure data, convenience and ease of use, and selective sharing of data and applications

  15. Question:Value Creation

    Answer:Computer exists to produce value for its owner; more productive computer leads to more value creation

  16. Question:Additional Requirements

    Answer:Efficient resource utilization, protection against abuses, resource allocation among users

  17. Question:Managing Resources

    Answer:Operating system should allow reliable sharing of data and applications

  18. Question:Security and Protection

    Answer:Operating system should provide security and protection for hardware and software

  19. Question:Error Handling and Recovery

    Answer:Operating system should provide robust error handling and recovery

  20. Question:Resource Allocation

    Answer:Operating system should allocate resources fairly, maximize throughput, minimize response time, and maximize hardware utilization

  21. Question:Program execution

    Answer:Loading and executing programs; providing synchronization, communication, and security

  22. Question:I/O operations

    Answer:Providing all I/O services to users and applications

  23. Question:File systems

    Answer:Creating and maintaining file systems and means of manipulating them

  24. Question:Communication

    Answer:Providing mechanisms that allow programs to communicate with each other

  25. Question:Error detection and recovery

    Answer:Detecting and handling error conditions

  26. Question:Protection and security

    Answer:Preventing unauthorized or improper access to all resources, and protecting users from each other's attempts to invade privacy or corrupt data

  27. Question:Accounting

    Answer:Monitoring and recording various performance and utilization metrics, for both users and the system

  28. Question:What are system programs?

    Answer:System programs are typically programs shipped or downloaded when the operating system is installed.

  29. Question:Examples of system programs

    Answer:Software updaters/package managers, compilers, linkers, loaders, debuggers, file management commands

  30. Question:Where are system programs found on a Linux system?

    Answer:System programs are found in the directories /bin, /usr/bin, /usr/sbin, and /sbin.

  31. Question:Can system programs be invoked through a graphical user interface?

    Answer:Some system programs can be invoked through a graphical user interface such as Gnome.

  32. Question:What is the difference between system programs and applications?

    Answer:System programs are programs shipped or downloaded with the operating system, while applications are programs that you install separately.

  33. Question:Where are applications typically installed?

    Answer:Applications are typically installed in the directories /usr/local/bin or /opt.

  34. Question:What does a typical computer consist of?

    Answer:A typical computer consists of one or more CPUs, one or more memory units, and a set of device controllers.

  35. Question:What is the common bus that connects the components of a computer called?

    Answer:The common bus that connects the components of a computer is usually called the system bus.

  36. Question:What is a multi-core processor?

    Answer:When several processors are integrated into a single chip, each one is called a core and the machine itself is called a multi-core processor.

  37. Question:What is a system bus?

    Answer:The system bus is a single communication path that connects the major components of a computer system, combining the functionality of a data bus, an address bus, and a control bus.

  38. Question:What is the width of a bus?

    Answer:The number of wires in a system bus is called the width of the bus.

  39. Question:What are memory units?

    Answer:Memory units are self-contained primary storage devices connected directly to the system bus. They are usually volatile and controlled by a memory controller.

  40. Question:What role does a memory controller play?

    Answer:A memory controller synchronizes access to the memory from the devices that want to access it and responds to requests to transfer data to and from memory.

  41. Question:What is an interrupt?

    Answer:An interrupt is a temporary break in the continuity of the process running on the processor in order to respond to some condition needing attention.

  42. Question:What happens when an interrupt takes place?

    Answer:When an interrupt takes place, the state of the processor is saved, and special code runs that handles the specific condition requiring attention.

  43. Question:What is an interrupt service routine (ISR) or an interrupt handler?

    Answer:An interrupt service routine (ISR) or an interrupt handler is the code that runs when an interrupt occurs. It handles the specific condition requiring attention.

  44. Question:What is an interrupt request?

    Answer:An interrupt request is a signal sent by a device needing attention to the processor. It triggers an interrupt and initiates the execution of the interrupt service routine.

  45. Question:What is the acronym IRQ?

    Answer:IRQ stands for interrupt request. It is used to refer to the signal sent by a device needing attention.

  46. Question:What is a device controller?

    Answer:A special-purpose processor that controls a specific type of device.

  47. Question:What are some examples of devices that a device controller can control?

    Answer:Devices such as disks or keyboards.

  48. Question:Can a device controller be connected to multiple instances of a device?

    Answer:Yes, it may be connected to multiple instances of the same type of device.

  49. Question:What are some components of a device controller?

    Answer:Special-purpose registers, buffer memory, and control logic.

  50. Question:What is the main task of a device controller?

    Answer:To move data between the devices it controls and its local memory.

  51. Question:What can a device controller do with the attached devices?

    Answer:It can respond to instructions, query the device status, and control the data transfer.

  52. Question:What is a device driver?

    Answer:A program or software module that can drive a controller by knowing its instruction set and interface.

  53. Question:What actions can a device driver perform on a device?

    Answer:It can send instructions to the device to perform actions such as reading data from a disk, transferring data to a memory location, or starting/stopping the device.

  54. Question:What is the primary purpose of device drivers?

    Answer:To provide a layer of abstraction, so that operating system programmers do not need to know the details of the device controllers to write code to perform tasks using those devices.

  55. Question:What is the role of a device driver in communicating with hardware?

    Answer:A device driver hides the hardware-specific differences and presents a common software interface to the operating system programmer, allowing them to interact with the device using the same interface regardless of the underlying hardware.

  56. Question:Method 1: Polling the Devices (Rarely Used)

    Answer:An IRQ is received by the CPU but it does not indicate which device caused the interrupt. There is a single ISR that runs when an interrupt occurs. This ISR sends a signal to each device that amounts to the question, 'did you just send an IRQ?'. The first device to answer 'yes' is the one that will be serviced. The ISR has code that causes a jump to the correct device driver. This method is called polling because it polls each device. It is inefficient.

  57. Question:Method 2: Vectored Interrupts (Almost Always Used)

    Answer:The interrupt lines on the bus are vectored: each device can send its identity along with the IRQ. When the CPU receives the IRQ, it can extract the identity of the device that needs service. The identity is an integer value. The system maintains a table, usually in low memory, that maps each integer device identity to the starting address of its ISR. This table is called the interrupt vector or the interrupt vector table. If there are many devices, sometimes the table is a linked list of ISR addresses.

  58. Question:What is a maskable interrupt?

    Answer:A maskable interrupt is one that can be disabled temporarily using the interrupt mask register.

  59. Question:What is an interrupt mask register?

    Answer:An interrupt mask register is a register that contains a bit for each interrupt type, used to determine whether or not to disable (i.e., mask) the interrupt.

  60. Question:Are maskable interrupts critical?

    Answer:No, maskable interrupts are non-critical.

  61. Question:What is a non-maskable interrupt?

    Answer:A non-maskable interrupt is one that cannot be disabled. It must be serviced and is not affected by the interrupt mask register.

  62. Question:Give examples of non-maskable interrupts.

    Answer:Examples of non-maskable interrupts include errors from memory and timer interrupts.

  63. Question:What does disabling an interrupt mean?

    Answer:In some systems, disabling an interrupt means ignoring it completely.

  64. Question:Can interrupts be deferred if they are disabled?

    Answer:In some systems, it is possible to defer processing the interrupt if it is disabled. Deferred interrupts are saved, usually in a queue, and handled in a specific order at a future time.

  65. Question:What is the concept of interrupt priority?

    Answer:Some interrupts have higher priorities than others - if a higher priority request occurs, it should interrupt the current ISR.

  66. Question:How can the mask register be used to set the interrupt priority level of the processor?

    Answer:The mask register can be used to set the interrupt priority level of the processor using a left-to-right ordering of the mask bits.

  67. Question:How can the processor mask interrupts whose priority is lower than a given one?

    Answer:By turning off all bits to the right of a given bit, the processor masks all interrupts whose priority is lower than the given one.

  68. Question:What happens when a lower priority interrupt occurs?

    Answer:If a lower priority interrupt occurs, it is ignored.

  69. Question:What happens when an interrupt occurs that is at equal or higher priority?

    Answer:If an interrupt occurs that is at equal or higher priority, the currently running ISR is interrupted and the ISR for the new one runs.

  70. Question:What is an exception?

    Answer:An exception is a software-generated interrupt caused by the execution of a software instruction.

  71. Question:Give examples of exceptions.

    Answer:Examples of exceptions are floating-point errors such as divide-by-zero, attempts to execute invalid opcodes, and attempts to access memory locations outside of the process's allowed memory.

  72. Question:What is a trap?

    Answer:A trap is a specific type of exception and is defined as a programmer-initiated transfer of control to a handler routine. It is often used as a synonym for exception but not all exceptions are traps.

  73. Question:How is a trap defined in the Intel 80x86 architecture?

    Answer:In the Intel 80x86 architecture, a trap is defined as a programmer-initiated (and consequently expected) transfer of control to a handler routine. The 'int' assembly instruction is an example of a trap.

  74. Question:What is the difference between a trap and an exception?

    Answer:Traps are actual instructions coded into programs intentionally to cause an interrupt, whereas exceptions are any interrupts generated by software.

  75. Question:How are traps and exceptions distinguished on Intel chips?

    Answer:On Intel chips, the 'eip' register is queried to decide the type of interrupt.

  76. Question:What is Capacity?

    Answer:Total amount of stored information that a storage medium or device can hold

  77. Question:What is Volatility?

    Answer:Refers to whether or not the information stored on a storage medium is retained when power is not continuously supplied to that medium

  78. Question:What is Access time?

    Answer:The amount of time it takes the medium or device to access the information at a given location

  79. Question:What is Accessibility?

    Answer:Refers to the two different types of access to the locations on a storage medium - random access and sequential access

  80. Question:What is Random access?

    Answer:Type of access where all locations on a storage medium can be accessed in about the same amount of time

  81. Question:What is Sequential access?

    Answer:Type of access where the information must be accessed in sequential order, and the time to access a particular piece of information depends on its location on the medium

  82. Question:What is the smallest unit of information?

    Answer:A bit

  83. Question:How many possible values does a bit have?

    Answer:2

  84. Question:What is the smallest addressable unit of storage in a computer?

    Answer:A byte

  85. Question:How many bits are there in a byte?

    Answer:8

  86. Question:What does 4096B mean?

    Answer:4096 bytes

  87. Question:What is the size of a word in a computer?

    Answer:The size of a computer's native unit of data

  88. Question:What components' size does a word typically match?

    Answer:General-purpose register, machine instruction, data chunk transferred to and from memory

  89. Question:What is a word made up of?

    Answer:One or more bytes

  90. Question:What is the word length or word size?

    Answer:The number of bits in a word

  91. Question:What does a '64-bit' architecture mean?

    Answer:A word length of 64 bits or eight bytes, 64-bit registers, and 64-bit memory addresses

  92. Question:What is primary storage?

    Answer:Storage that is directly accessible to the processor.

  93. Question:What is secondary storage?

    Answer:Storage that is not directly accessible to the processor, but can be accessed through the I/O channels.

  94. Question:What is tertiary storage?

    Answer:Storage that is not directly accessible to the processor and cannot be accessed through the I/O channels without intervention.

  95. Question:Memory Hierarchy

    Answer:The hierarchy of memory components where components near the top are faster and have smaller capacity than those further away.

  96. Question:Registers

    Answer:The fastest and smallest capacity memory component, located directly in the CPU.

  97. Question:CPU Caches

    Answer:Memory components that are faster than random access memory (RAM), but slower than registers. Located between the registers and RAM.

  98. Question:Random Access Memory (RAM)

    Answer:The main memory of a computer, slower than CPU caches but faster than magnetic disks.

  99. Question:Magnetic Disks

    Answer:Storage devices that provide non-volatile, high-capacity storage. Slower than RAM.

  100. Question:Tertiary Storage

    Answer:Storage devices that are orders of magnitude slower than magnetic disks.

  101. Question:Levels in the Memory Hierarchy

    Answer:The different levels or layers of memory in the hierarchy, starting from the CPU and moving further away.

  102. Question:What is the fastest storage in a computer system?

    Answer:CPU registers

  103. Question:What is the capacity of CPU registers?

    Answer:Small

  104. Question:What is stored in RAM?

    Answer:Operating system, programs, and data and its also called primary memory

  105. Question:Is RAM volatile or non-volatile?

    Answer:Volatile

  106. Question:What is the most common technology used to implement RAM?

    Answer:Dynamic Random Access Memory (DRAM)

  107. Question:Why is DRAM called dynamic?

    Answer:Because the information is stored in capacitors and needs to be periodically refreshed with energy

  108. Question:What makes DRAM slower than SRAM?

    Answer:Refresh cycles and the need to read data which destroys the capacitor contents

  109. Question:What is the main usage of SRAM?

    Answer:Processor cache and more expensive than DRAM

  110. Question:Are magnetic disks volatile or non-volatile?

    Answer:Non-volatile

  111. Question:Where does the file system reside?

    Answer:On magnetic disks

  112. Question:What type of storage do magnetic disks provide?

    Answer:Swap space

  113. Question:What is the purpose of swap space?

    Answer:To extend the capacity of primary memory in virtual memory systems

  114. Question:What is another type of secondary storage medium?

    Answer:Solid-state drives

  115. Question:Do solid-state drives have larger or smaller capacity than magnetic disks?

    Answer:Smaller

  116. Question:What type of files and data are solid-state drives more suited for?

    Answer:Mostly read-only files and data, such as operating system software

  117. Question:What is tertiary storage used for?

    Answer:Tertiary storage is used for backing up systems or archiving data.

  118. Question:What are some examples of tertiary storage media?

    Answer:Some examples of tertiary storage media are optical disks and magnetic tapes.

  119. Question:What are the limitations of optical disks as tertiary storage?

    Answer:The capacity of optical disks is small and the ability to write and rewrite them is limited. DVD disks can store no more than a few gigabytes and Blu-ray disks a few hundred gigabytes.

  120. Question:What is the capacity of a magnetic tape as tertiary storage?

    Answer:A magnetic tape can store several terabytes, with recent advances pushing the capacity to over 500TB.

  121. Question:How do external hard disks compare to internal disks in terms of capacity and speed?

    Answer:External hard disks have the same range of capacities as internal disks but are slightly slower because they are accessed through a slower bus.

  122. Question:What is cache?

    Answer:A fast but small storage component used as a temporary holding area for data to improve performance.

  123. Question:What is the purpose of a cache?

    Answer:To hold frequently used data or instructions to improve performance.

  124. Question:Where is cache used?

    Answer:Cache is used by processors, hard disk drives, secondary storage devices, and web browsers.

  125. Question:What is the purpose of registers in the CPU?

    Answer:Registers in the CPU are fast but limited in capacity. They are used to store frequently used data.

  126. Question:Why is access to DRAM slow?

    Answer:DRAM is slower to access because the processor needs to put requests on the system bus and wait for the data to be available.

  127. Question:What are the advantages and disadvantages of SRAM?

    Answer:SRAM is faster than DRAM but has a smaller capacity and is more expensive. It is also larger in size.

  128. Question:What is processor cache?

    Answer:Processor cache is a level of memory hierarchy between the CPU and main memory. It is made of SRAM and stores frequently accessed data and instructions, reducing accesses to slower DRAM.

  129. Question:How does the processor cache work?

    Answer:When data is missing in the cache, it is copied into it from main memory for faster access in the future.

  130. Question:What are examples of slow devices that handle small chunks of data?

    Answer:Keyboards and pointing devices

  131. Question:What is Direct Memory Access (DMA)?

    Answer:A method of I/O that transfers data at a high bandwidth with low overhead and removes the processor from the operation of transferring large amounts of data to or from a device.

  132. Question:What is the role of a DMA controller?

    Answer:A device that takes charge of the I/O transfers to memory and becomes the bus master until the I/O is completed.

  133. Question:Which devices use DMA?

    Answer:Disk drive controllers, graphics cards, network cards, sound cards

  134. Question:What information does the CPU provide to the DMA controller?

    Answer:The memory address, number of bytes to transfer, read or write flag, and address of the I/O device and data involved in the I/O.

  135. Question:What happens when the DMA controller becomes the bus master on the memory bus?

    Answer:It takes control of the bus and can initiate data transfers between the I/O device and memory.

  136. Question:What does the DMA controller do during an input operation?

    Answer:It receives data from the I/O device, buffers the data, and stores it in successive memory locations as it becomes available.

  137. Question:What does the DMA controller do during an output operation?

    Answer:It buffers data from memory and sends it to the I/O device as it becomes ready to receive it.

  138. Question:What happens when the transfer is complete?

    Answer:The DMA controller relinquishes the bus and sends an interrupt to the processor.

  139. Question:What is the impact on CPU access to memory during a DMA transfer?

    Answer:The CPU will be delayed in accessing memory as the DMA controller owns the bus during the transfer.

  140. Question:What are the main components of a CPU?

    Answer:Arithmetic-Logic Unit, Registers, Control Unit

  141. Question:What are the special-purpose processors found in single-processor computers?

    Answer:Graphics accelerators, DMA controllers, Disk controllers

  142. Question:What is a multicomputer?

    Answer:A computer with multiple CPUs that do not share memory

  143. Question:What is a multiprocessor?

    Answer:A computer with multiple processors and a shared memory

  144. Question:What is the difference between a multicomputer and a multiprocessor in terms of memory access?

    Answer:In a multicomputer, each CPU has its own memory address space and can access only its private memory. In a multiprocessor, the same address generated on two different processors refers to the same memory location.

  145. Question:Multicomputer Architecture

    Answer:An architecture that consists of multiple computers connected to each other.

  146. Question:What is a symmetric multiprocessor (SMP) or a uniform memory-access processor (UMA)?

    Answer:When the processors are identical to each other, memory is shared, and access time to memory is the same for each.

  147. Question:How are SMPs manufactured?

    Answer:Some SMPs are manufactured as a single chip or socket containing two or more CPUs. The CPUs in this case are always called cores.

  148. Question:What is the advantage of the single chip design in SMPs?

    Answer:The advantage of the single chip design is speed: on-chip communication is faster than between-chip communication. Also, one chip with multiple cores uses significantly less power than multiple single-core chips.

  149. Question:What is a non-uniform memory access (NUMA) multiprocessor?

    Answer:A non-uniform memory access (NUMA) multiprocessor is one in which each CPU has a local memory that can be accessed through a fast local bus. The CPUs are connected by a shared interconnection network that enables all CPUs to share one memory address space. Memory access is non-uniform because when a CPU accesses its local memory, it is fast and contention-free, but when it accesses the local memory of another CPU, it is slower because the access is through the shared interconnection network.

  150. Question:What is a clustered computer system?

    Answer:A collection of independent computers connected by a LAN, sharing a common storage device, and can distribute computational jobs among them.

  151. Question:What are the nodes in a clustered computer system?

    Answer:The individual computers that make up the system.

  152. Question:What is the purpose of clustering?

    Answer:To provide high availability and fault tolerance by distributing computational jobs among multiple nodes.

  153. Question:What is an asymmetric cluster?

    Answer:A cluster with one node in hot-standby mode.

  154. Question:What is a symmetric cluster?

    Answer:A cluster with multiple nodes running applications and monitoring each other for high-performance computing.

  155. Question:What is the process of starting and initializing a computer called?

    Answer:Bootstrapping or booting

  156. Question:What is the small program executed when power is turned on in a computer?

    Answer:BIOS (Basic Input Output System) or UEFI (Unified Extensible Firmware Interface)

  157. Question:What does the second-stage program in the boot process do?

    Answer:Loads the operating system kernel into memory and performs configuration

  158. Question:What are the programs that provide system services called?

    Answer:System daemons

  159. Question:Examples of system daemons in Unix

    Answer:sshd (listens for ssh connections), logind (listens for login attempts on the console), systemd (brings up and maintains all services for the computer users)

  160. Question:What happens after all daemons are started in the boot process?

    Answer:The kernel waits for a user to login or runs specified start-up programs

  161. Question:When is booting considered complete?

    Answer:When the kernel waits for a user to login or runs specified start-up programs

  162. Question:What was the initial state of computer systems?

    Answer:Single-user systems

  163. Question:How did the operating system handle program execution in single-user systems?

    Answer:The operating system would control execution of one program at a time, initializing it, letting it run to completion, and then starting the next.

  164. Question:Why did computer systems change from single-user to multiprogramming systems?

    Answer:When a program makes a request for I/O, it must wait until the I/O operation is completed. This leads to the CPU being idle, which is a waste of resources. By allowing multiple programs to be in memory at a time, the operating system can switch among them, keeping the CPU busy.

  165. Question:What is the purpose of keeping more than one program in memory?

    Answer:To switch among the memory-resident programs so that the CPU always has a program ready to run.

  166. Question:What is an operating system called that can keep more than one program in memory at a time?

    Answer:A multiprogramming system.

  167. Question:What does the term multiprogramming mean?

    Answer:Keeping more than one program in memory at a time.

  168. Question:What is the degree of multiprogramming?

    Answer:The number of programs in memory at any time.

  169. Question:What is the purpose of multiprogramming?

    Answer:The purpose of multiprogramming is to increase CPU utilization.

  170. Question:How is CPU utilization defined?

    Answer:CPU utilization is defined as the fraction of time that the CPU does useful work.

  171. Question:What is a batch job?

    Answer:A program that can run without user intervention, typically processing large amounts of data.

  172. Question:What does it mean for a program to run in the background?

    Answer:It means that the program is running without user interaction or visibility.

  173. Question:Where are batch jobs typically run?

    Answer:Batch jobs are typically run in high-performance computing centers or data centers.

  174. Question:What is batch processing?

    Answer:Batch processing is a type of multiprogramming system where several programs are memory-resident and run to completion.

  175. Question:Why do jobs submitted to a batch processing system sometimes wait a long time to run?

    Answer:Jobs may wait because all jobs before them must run to completion in the batch processing system.

  176. Question:Are batch systems used for interactive computing?

    Answer:No, batch systems are not used for interactive computing.

  177. Question:What is meant by 'open' in this context?

    Answer:Seeing the application on the screen and it is running.

  178. Question:What are applications?

    Answer:Programs.

  179. Question:How can multiple applications run 'at the same time' on a single CPU?

    Answer:Through time-sharing, where each program gets a small slice of time on the CPU in a specific order.

  180. Question:What is time-sharing?

    Answer:A type of multiprogramming where each program gets a small time slice on the CPU.

  181. Question:What is the objective of time-sharing?

    Answer:To make each user think their program is the only program running.

  182. Question:What infrastructure does time-sharing require in the operating system?

    Answer:CPU scheduling, Memory management, Resource management, Timers, Lists of active and inactive processes

  183. Question:What is CPU scheduling in time-sharing?

    Answer:It is the process of deciding which program runs next on the CPU.

  184. Question:What is memory management in time-sharing?

    Answer:It is the process of deciding which programs are in memory and managing the allocation of memory resources.

  185. Question:What is resource management in time-sharing?

    Answer:It is the process of deciding which program gets to use which device and managing the sharing of devices.

  186. Question:What is multitasking?

    Answer:Multitasking is a specific form of time-sharing in which the running programs, which we call processes, or tasks, may be cooperating to solve a single problem, sharing resources to accomplish this.

  187. Question:What is time-sharing?

    Answer:Time-sharing is slicing up the CPU's time into small pieces and giving them to processes, whether or not they are working together.

  188. Question:What is multitasking generally used for?

    Answer:Multitasking is generally used when processes are working together.

  189. Question:What does multitasking include?

    Answer:Multitasking includes a form of parallel computing in which programs are multithreaded, and the individual threads share the CPU.

  190. Question:Dual-Mode Operation

    Answer:The CPU has a mode bit that can be in one of two states: user mode (mode bit == 1) kernel mode, also called privileged mode or supervisor mode (mode bit == 0). The CPU can determine the state of the mode bit.

  191. Question:Privileged Instructions

    Answer:Some instructions are designated as privileged instructions that can only be executed in kernel mode.

  192. Question:Trap

    Answer:Any attempt to execute a privileged instruction in user mode results in a trap.

  193. Question:Change Mode Bit

    Answer:There is a privileged instruction that can change the state of the mode bit.

  194. Question:Setting the value of a timer or a clock

    Answer:A privileged instruction that allows changing the value of a timer or a clock.

  195. Question:Instructions to perform I/O

    Answer:Privileged instructions that enable input/output operations.

  196. Question:Disabling interrupts

    Answer:A privileged instruction that allows disabling interrupts.

  197. Question:Changing the values of certain system-controlled registers

    Answer:Privileged instructions that enable changing the values of specific system-controlled registers.

  198. Question:Changing the mode bit to kernel mode

    Answer:A privileged instruction that switches the processor to kernel mode.

  199. Question:Privilege rings

    Answer:In the Intel x86 architecture, there are four privilege rings (0, 1, 2, and 3) that determine the level of privilege for executing instructions.

  200. Question:What mode does the kernel run in when the system is booted?

    Answer:Kernel mode

Showing the first 200 of 281 cards. Open All cards to see the rest.