Made with ScholarlyMake flashcards like these from your own notes
Question:What services does an operating system provide to the user?
Answer:User interface to interact with OS (e.g., CLI, GUI, touch screen interface), Program execution, IO operations, File system manipulation, Communications, Error detection.
Question:What are the resource management services provided by an operating system?
Answer:Resource allocation, Accounting, Protection and Security.
Question:What is the function of the Command Line Interpreter (CLI) in an operating system?
Answer:The primary job of the CLI is to fetch a command from the user and execute it.
Question:Is the Command Line Interpreter (CLI) part of the kernel in Windows and Unix?
Answer:No, the CLI is not part of the kernel in Windows and Unix.
Question:What are shells in Unix/Linux?
Answer:In Unix/Linux, shells are programs like bash that allow users to interact with the operating system through the command line.
Question:What happens when you enter a command like 'rm filetext' in the terminal?
Answer:The shell invokes the command 'rm', searches for the file, loads 'rm' in memory, and executes it with 'filetext' as a parameter.
Question:What is the role of the shell regarding the implementation of commands?
Answer:The shell has no idea how the command (e.g., 'rm') is implemented or the system calls used to process the request.
Question:What are the different structures of an operating system?
Answer:Monolithic, Layered, Microkernel, Modular.
Question:What does a general-purpose operating system refer to?
Answer:A general-purpose OS is a very large program that can handle various tasks for users and applications.
Question:What is a simple monolithic structure in operating systems?
Answer:A simple monolithic structure has little to no structure at all, where all the functionality of the kernel, process memory, and file I/O is placed into a single static binary file that runs in a single address space.
Question:Give an example of a simple monolithic structure.
Answer:MS-DOS is an example of a simple monolithic structure.
Question:What characterizes a non-simple monolithic structure?
Answer:A non-simple monolithic structure has some structuring and the kernel handles several OS tasks, including CPU memory management and file systems.
Question:What is an example of a non-simple monolithic structure?
Answer:The original UNIX OS is an example of a non-simple monolithic structure.
Question:What are the advantages of a simple monolithic structure?
Answer:The advantages include simplicity and speed.
Question:What are the disadvantages of a simple monolithic structure?
Answer:The disadvantages include being harder to implement and extend.
Question:How is a simplified non-simple monolithic structure organized?
Answer:A simplified non-simple monolithic structure is divided into a number of layers or levels, where each layer is built on top of lower layers.
Question:What is the bottom layer (layer 0) in a layered approach?
Answer:The bottom layer (layer 0) is the hardware.
Question:What is the highest layer (layer N) in a layered approach?
Answer:The highest layer (layer N) is the user interface.
Question:What is a disadvantage of the layered approach?
Answer:A disadvantage is that it can be tricky to delineate the layers and any user request needs to go through all the layers with the correct function calls and parameters.
Question:What does a layered approach do to the operating system?
Answer:The layered approach structures the operating system by removing all nonessential components from the kernel and implementing them as user or system level programs.
Question:What is the role of microkernels?
Answer:Microkernels provide minimal process and memory management, with communication between the modules taking place using message passing.
Question:What is an example of a microkernel?
Answer:Mach is an example of a microkernel.
Question:What is the open source kernel partly based on Mach?
Answer:Mac OS X open source kernel Darwin is partly based on Mach.
Question:What initial approach did Windows NT use for its kernel structure?
Answer:Windows NT's first release had a layered microkernel approach.
Question:What are the advantages of a microkernel system structure?
Answer:Advantages include being easier to extend, easier to port to new architectures, and being more reliable and secure.
Question:What is a disadvantage of using a microkernel?
Answer:A disadvantage is the performance overhead of user space to kernel space communication.
Question:What are the core components of a kernel?
Answer:Kernel has a set of separate core components with clearly defined interfaces.
Question:How are additional services linked into the kernel?
Answer:Additional services are linked in via modules either at boot time or run time.
Question:What is unique about the loadable kernel modules?
Answer:Each module is loadable as needed within the kernel.
Question:Which modern operating systems implement loadable kernel modules?
Answer:Many modern operating systems such as UNIX, Linux, Solaris, and Windows implement loadable kernel modules.
Question:What is the best methodology for OS design according to the text?
Answer:The best methodology for OS design is the use of loadable kernel modules.
Question:What is the modular structure in operating systems?
Answer:The modular structure allows operating systems to use modules for adding functionality.
Question:What is the Solaris modular approach?
Answer:The Solaris modular approach is a hybrid model that combines multiple approaches to address performance, security, and usability needs.
Question:What type of kernel do Linux and Solaris use?
Answer:Linux and Solaris kernels are monolithic for efficient performance and modular with dynamic loading of functionality.
Question:What are system calls?
Answer:System Calls provide an interface to OS services.
Question:How are system calls typically written?
Answer:System Calls are routines mostly written in a high level language such as C or C++, but lower level tasks are written in assembly.
Question:What is an API?
Answer:An API (Application Programming Interface) is a set of routines, protocols, and tools for building software and applications.
Question:What are System Calls accessed by programs through?
Answer:System Calls are accessed by programs via a high level Application Programming Interface (API) rather than direct system call use.
Question:What does an API specify?
Answer:An API specifies a set of interfaces/functions available to the programmer.
Question:How can API interfaces be implemented?
Answer:These interfaces can be implemented as single or multiple system calls.
Question:What are the three most common APIs mentioned?
Answer:The three most common APIs are: 1. Win32 API for Windows 2. POSIX API for POSIX based systems (UNIX, Linux, and Mac OS X) 3. Java API for the Java virtual machine (JVM).
Question:What is an example of a standard API system call sequence?
Answer:An example of a standard API system call sequence is to copy the contents of one file to another file.
Question:How many system calls can be executed per second?
Answer:Thousands of system calls can be executed per second.
Question:Do programmers see the level of detail at which system calls are executed?
Answer:No, programmers do not see this level of detail.
Question:What are some examples of system calls in Windows and Unix?
Answer:Examples of Windows and Unix system calls were mentioned, but specific examples were not provided in the text.
Question:What are system programs also known as?
Answer:System programs are also known as system utilities.
Question:Are system programs necessarily part of the kernel?
Answer:No, system programs are associated with the operating system but are not necessarily part of the kernel.
Question:What are some functions of system programs?
Answer:System programs exist for several OS tasks such as file management, programming language support, program loading and execution, and communications.
Question:What are continuously running system program processes known as?
Answer:Continuously running system program processes are known as services, subsystems, or daemons.