Logo/

Untitled Flashcards

Log in

Made with ScholarlyMake flashcards like these from your own notes

Untitled Flashcards

Questions and answers

49 cards
  1. 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.

  2. Question:What are the resource management services provided by an operating system?

    Answer:Resource allocation, Accounting, Protection and Security.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. Question:What are the different structures of an operating system?

    Answer:Monolithic, Layered, Microkernel, Modular.

  9. 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.

  10. 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.

  11. Question:Give an example of a simple monolithic structure.

    Answer:MS-DOS is an example of a simple monolithic structure.

  12. 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.

  13. 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.

  14. Question:What are the advantages of a simple monolithic structure?

    Answer:The advantages include simplicity and speed.

  15. Question:What are the disadvantages of a simple monolithic structure?

    Answer:The disadvantages include being harder to implement and extend.

  16. 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.

  17. Question:What is the bottom layer (layer 0) in a layered approach?

    Answer:The bottom layer (layer 0) is the hardware.

  18. Question:What is the highest layer (layer N) in a layered approach?

    Answer:The highest layer (layer N) is the user interface.

  19. 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.

  20. 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.

  21. 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.

  22. Question:What is an example of a microkernel?

    Answer:Mach is an example of a microkernel.

  23. Question:What is the open source kernel partly based on Mach?

    Answer:Mac OS X open source kernel Darwin is partly based on Mach.

  24. Question:What initial approach did Windows NT use for its kernel structure?

    Answer:Windows NT's first release had a layered microkernel approach.

  25. 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.

  26. Question:What is a disadvantage of using a microkernel?

    Answer:A disadvantage is the performance overhead of user space to kernel space communication.

  27. Question:What are the core components of a kernel?

    Answer:Kernel has a set of separate core components with clearly defined interfaces.

  28. Question:How are additional services linked into the kernel?

    Answer:Additional services are linked in via modules either at boot time or run time.

  29. Question:What is unique about the loadable kernel modules?

    Answer:Each module is loadable as needed within the kernel.

  30. 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.

  31. 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.

  32. Question:What is the modular structure in operating systems?

    Answer:The modular structure allows operating systems to use modules for adding functionality.

  33. 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.

  34. 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.

  35. Question:What are system calls?

    Answer:System Calls provide an interface to OS services.

  36. 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.

  37. Question:What is an API?

    Answer:An API (Application Programming Interface) is a set of routines, protocols, and tools for building software and applications.

  38. 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.

  39. Question:What does an API specify?

    Answer:An API specifies a set of interfaces/functions available to the programmer.

  40. Question:How can API interfaces be implemented?

    Answer:These interfaces can be implemented as single or multiple system calls.

  41. 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).

  42. 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.

  43. Question:How many system calls can be executed per second?

    Answer:Thousands of system calls can be executed per second.

  44. Question:Do programmers see the level of detail at which system calls are executed?

    Answer:No, programmers do not see this level of detail.

  45. 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.

  46. Question:What are system programs also known as?

    Answer:System programs are also known as system utilities.

  47. 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.

  48. 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.

  49. Question:What are continuously running system program processes known as?

    Answer:Continuously running system program processes are known as services, subsystems, or daemons.