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

Study methods

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

Operating System Basics

  • 35Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Early Computing
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What was the open shop system in early computing?

Tap to flipClick to flipspace

The programmer, user, and designer were often the same person. The user had sole use of the machine, programming by flicking switches on a console.

Or swipe the card

35 cards

  1. What was the open shop system in early computing?

    The programmer, user, and designer were often the same person. The user had sole use of the machine, programming by flicking switches on a console.

  2. How was the IBM 701 managed to handle multiple users?

    It used 15-minute time slots. Programmers had 15 minutes, but about 10 minutes were spent setting up tapes and dealing with output, leaving only 5 minutes of run time. The mean time between failures was 3.5 hours.

  3. What shift occurred in operating system design from the 1950s to today?

    From many users sharing one expensive machine (maximize utilization) to giving one user access to many cheap machines (maximize speed).

  4. What is closed shop processing?

    The machine room is restricted to operators. Users write programs on remote terminals or punch cards, which are batched and run sequentially.

  5. What is a context switch?

    When an interrupt occurs, the operating system saves the state of the current process (in a Process Control Block) and loads the state of another process. The time to switch is called process switch latency (ΔT\Delta TΔT).

  6. What is an interrupt?

    A signal to the CPU to stop current execution and handle a high-priority event, such as I/O completion.

  7. What is a Process Control Block (PCB)?

    A data structure that holds the state of a process, including program counter, registers, and other context, allowing the OS to save and restore processes during context switches.

  8. What is a thread?

    A lightweight process that shares resources with other threads within the same process. It requires less context to save during a context switch, reducing overhead.

  9. Describe the Solaris scheduling algorithm.

    Solaris uses time-sharing with 20ms time slices. Each thread is assigned a priority; high-priority threads run first. When a thread exceeds its time slice, its priority is decreased. Real-time tasks have strict timing constraints.

  10. What is a real-time task in an operating system?

    A task that must complete within a fixed time constraint, not just quickly. Example: spinning plates that need attention before falling.

  11. What is process switch latency?

    The time required to save the state of one process and load another during a context switch. Designers aim to minimize it.

  12. What is virtual memory?

    A memory management technique that gives each process the illusion of a contiguous, private memory space (programmer's model). It maps virtual addresses to physical memory, which may include slower backing store (disk).

  13. What is paging in virtual memory?

    Memory is divided into fixed-size blocks called pages. A page table maps virtual pages to physical frames. If a page is not in main memory, a page fault occurs and the page is loaded from backing store.

  14. What is a page fault?

    When a process requests a page that is not currently in physical memory. The OS loads it from disk (backing store), which may cause a context switch while waiting.

  15. What role does a cache play in virtual memory?

    A small, fast memory that holds recently accessed data (pages or disk blocks) to speed up access to slower backing store. It mediates between fast RAM and slow disk.

  16. What is thrashing?

    A condition where the system spends more time swapping pages between memory and disk than executing processes, severely degrading performance. Common in systems with insufficient physical memory.

  17. What is the backing store in virtual memory?

    A secondary storage (usually disk) that holds pages not currently in physical memory. Pages are swapped between RAM and backing store as needed.

  18. What are the three main parts of the Unix operating system?

    Kernel, shell, and utility programs. The kernel manages hardware and scheduling; the shell is the command interpreter; utilities perform specific tasks (e.g., editing, sorting).

  19. What is the kernel of an operating system?

    The core component that manages machine control, scheduling, memory, and hardware interfaces. It runs in privileged mode (supervisor mode).

  20. What is the shell in Unix?

    The command interpreter that handles communication between the user and the kernel. The first Unix shell was called 'sh'.

  21. What is a monolithic kernel?

    An operating system architecture where all system services (file system, device drivers, networking, etc.) run in kernel space (privileged mode). This allows fast inter-process communication but results in a large, complex kernel.

  22. What is a microkernel?

    An architecture that minimizes what runs in privileged mode. Only essential functions (like IPC, basic scheduling) run as kernel; other services run as user processes. Advocates claim it can be formally verified for correctness.

  23. How does Linux relate to Unix?

    Linux is a Unix-like operating system that implements similar concepts and commands but was written from scratch by Linus Torvalds. It is often considered a Unix clone.

  24. What is kernel panic?

    A fatal error in the kernel where it cannot recover. It stops the system and usually results in data loss; often requires a reboot.

  25. Why are protected instructions important in an operating system?

    To prevent user processes from interfering with each other or the kernel. They restrict access to certain hardware operations, ensuring privilege separation.

  26. What is a DLL and what is DLL hell?

    A Dynamic Link Library allows code to be shared at runtime. DLL hell occurs when different applications require different versions of the same DLL, leading to conflicts.

  27. Compare static and dynamic linking.

    Static linking includes library code in the final executable, resulting in large files. Dynamic linking loads libraries at runtime, shared across programs, but can lead to version conflicts (DLL hell).

  28. What is a race condition?

    When the outcome of operations depends on the timing or interleaving of multiple processes or threads. Example: two processes incrementing a shared variable without synchronization can yield incorrect results.

  29. What is priority inversion?

    A scenario where a high-priority task is blocked because a low-priority task holds a needed resource, and a medium-priority task preempts the low-priority task, causing indefinite postponement of the high-priority task.

  30. What is one common approach to prevent race conditions?

    Using synchronization mechanisms like mutexes, semaphores, or locks to ensure mutual exclusion when accessing shared resources.

  31. What is Infrastructure as a Service (IaaS)?

    Cloud computing model where virtual servers (virtual machines) are rented to customers. They have control over the OS and applications. Example: renting virtual machines from AWS.

  32. What is Platform as a Service (PaaS)?

    Cloud model where a platform (including OS, development tools, etc.) is provided to build applications. Example: AWS Elastic Beanstalk or Azure App Services.

  33. What is Software as a Service (SaaS)?

    Cloud model where software is hosted centrally and accessed via the internet. Example: Google Docs.

  34. What is a hypervisor or VMM?

    A virtual machine manager that runs multiple virtual machines on a single physical host. It manages the resources and isolates each VM. Examples: VMware, KVM.

  35. Describe the current state of operating system market share for personal devices.

    The market is dominated by two families: Windows (green) and Linux/Unix (Android, macOS, iOS). Linux's Android has a huge share due to mobile devices. Many older systems have disappeared.

Card 1 of 35
Card 1 of 35

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent