Archive

OS22 writings

7 writings

  1. Use Symlinks to Keep LLM Configuration Files in Sync
    Coding agents use different project memory files like AGENTS.md, CLAUDE.md, and GEMINI.md. Symlinks let them share one source of truth.

    OSAgent6 min

  1. Nushell - Cross-Platform
    Encapsulating cross-platform functions and isolating OS-specific configs using Nushell.

    OSLinuxShellWindowsNushellmacOS4 min

  1. Set System Env-Vars in UNIX
    How to set true system-wide environment variables on macOS with a simple Launch Agent and shell script, so GUI apps and every shell see them.

    OSTerminalLinuxShellNushellmacOS6 min

  2. IO Multiplexing
    A brief walkthrough of how select, poll, and epoll are implemented.

    OSLinuxNetworkIOFileSocket6 min

  3. Clean Disk Space in Ubuntu
    Fix apt install errors caused by no free space in /var/cache/apt/archives by locating the full partition and using a temporary cache path.

    OSLinuxUbuntu3 min

  4. Network IO Models
    A walkthrough of the five I/O models on Linux, with C and Java implementations.

    OSLinuxNetworkCfdIOFileSocket13 min

  1. Set Git Proxy
    Set up a proxy for Git operations, both for HTTP/HTTPS and SSH connections.

    OSGitSSH2 min

  1. Personalization for Mobile Phones
    Notes on phone home-screen personalization, including color palettes, icon packs, widgets, fonts, and Samsung Theme Park.

    OSAndroidOneUI2 min

  1. Unix/Linux OS Introduction
    An introduction to the Linux operating system, file operations, and permission management

    OSLinux7 min

  1. Move WSL to Another Drive
    Move an installed WSL distribution to another drive by exporting, unregistering, importing, and restoring the default user.

    OSLinuxWSL2 min

  2. File System
    File system basics, directory management with FCBs and inodes, file sharing via hard and symbolic links, physical file structures, and free space management.

    OS33 min

  3. I/O System
    I/O controllers, channels, and control modes (polling, interrupt, DMA); device data structures; disk scheduling (FCFS, SSTF, SCAN, CSCAN); buffering.

    OS29 min

  4. The Dead Lock
    Causes and necessary conditions of deadlock, plus prevention, avoidance, detection, and recovery, including the Banker's Algorithm.

    OS16 min

  5. The Processor Scheduling
    Levels of processor scheduling, scheduling queue models and criteria, scheduling algorithms, and real-time scheduling.

    OSProcess8 min

  6. Process Scheduling in OS
    Notes on process scheduling triggers, evaluation metrics, and common algorithms such as FCFS, SJF, RR, MLFQ, EDF, and LLF.

    OSProcessThreadConcurrencyParallelism4 min

  7. Thread
    Threads as the basic unit of scheduling, thread control, synchronization with mutexes, condition variables, and semaphores, and ULT vs KLT.

    OSThreadConcurrency8 min

  8. Inter Process Communication
    Types of IPC: shared memory, pipes, message-passing systems, mailboxes, and client-server mechanisms like sockets and RPC.

    OSProcess12 min

  9. Concurrency & Parallelism Etc.
    Notes on concurrency, parallelism, CPU cores, hardware threads, processes, and threads in operating systems.

    OSProcessThreadConcurrencyParallelism2 min

  10. ProcessSync
    Process synchronization in operating systems, covering critical sections, semaphores, hardware synchronization, and classic synchronization problems.

    OSProcess22 min

  11. Process Description and Control
    OS process management: precedence graphs and program execution, process description, and process control.

    OS11 min

  12. Process & Thread
    An introduction to processes and threads

    OSProcessThreadLinux12 min

  1. Introduction to Operating Systems
    An overview of operating systems, their definition, goals and roles, history, basic characteristics, main functions, and structural design.

    OSCLITerminal9 min