Made with ScholarlyTurn your own files into documents like this
Shared by uygoyg
These revision notes cover OS foundations, operating-system types, processes and CPU scheduling, synchronization and deadlock, and file-system allocation and free-space management (pp. 1–6). The most testable distinctions are one-CPU time-sharing versus multiple-CPU multiprocessing, the roles of the three schedulers, the four necessary deadlock conditions, and index metadata versus file data. The notes explicitly represent only selected portions of a six-hour video, so several named topics receive limited orientation rather than complete explanations (p. 1; p. 5).
Operating-system role and kernel: The OS stands between users and hardware, manages resources such as CPU time and memory among processes, and provides a platform for applications. The kernel is the core management component. The notes summarize the relationship as: applications request services, the OS mediates and allocates hardware resources, and the kernel performs core management (p. 1).
Goals, interfaces, and system calls: The four stated OS goals are convenience, efficiency, reliability, and maintainability. The named interfaces are CLI, GUI, and touch. A system call is “a request by a user program for an OS service.” The study model separates user-mode code from privileged kernel-mode operations: a system-call path transfers control to the OS, which provides the service before execution returns to the program (p. 2).
Types of operating systems—keep the distinctions sharp: Batch systems process jobs in groups; multiprogramming keeps several jobs available so the CPU can work on another when one waits; time-sharing/multitasking rapidly switches one CPU among tasks; multiprocessing uses two or more CPUs to execute in parallel. Real-time correctness partly depends on timing: a hard real-time system must meet deadlines, while a missed soft real-time deadline reduces usefulness (pp. 2–3).
Process and workload: A process is “a program in execution.” A program is passive code; a process is executing activity with state managed by the OS. A CPU-bound workload spends much of its time computing and needs substantial processor time; an I/O-bound workload spends more time waiting for I/O, which may allow other ready work to run (p. 3).
Schedulers, dispatcher, and context switch: The long-term scheduler admits jobs to the ready queue and controls the degree of multiprogramming; the short-term (CPU) scheduler selects a ready process; the medium-term scheduler swaps processes out and back in. The dispatcher transfers CPU control to the selected process, and dispatch latency is the delay involved in that transfer. A context switch saves the outgoing process’s state and loads the incoming process’s state so the CPU can resume it (pp. 3–4).
Scheduling algorithms: FCFS runs in arrival order; SJF/shortest job next selects the job with the shortest expected CPU burst; priority scheduling selects according to assigned priority; round robin gives ready processes recurring turns using a time slice, returning unfinished work to the ready queue. Non-preemptive scheduling lets a process keep the CPU until it finishes or blocks; preemptive scheduling permits the OS to take the CPU away and schedule another process (p. 4).
Critical sections and deadlock: A critical section accesses shared data or a shared resource and needs coordinated access. The notes identify test-and-set as a hardware-supported mechanism for controlling access, but do not specify an implementation or code sequence. A deadlock is “indefinite waiting among processes for events that only other waiting processes can cause.” All four conditions are necessary: mutual exclusion, hold and wait, no preemption, and circular wait (p. 4; p. 5).
File-system representation: In indexed allocation, an index structure points to a file’s data blocks; the index is metadata, not the file data itself. Free-space management topics include bit vectors and linked lists. In a bitmap, each bit corresponds to a block, but whether 0 or 1 means free is system-dependent. A linked list connects free-block records for traversal (p. 5).
Make from this