Semaphores

Similar Posts

  • The Implementation of Semaphores

    Most contemporary computer architectures offer hardware support for process synchronization in the form of specialized machine instructions. The test-and-set instruction (TS) copies a variable into a register and sets the variable to zero in one indivisible machine cycle. Test-and-set has the form TS(R, x) where R is a register and x is a memory location and performs…

  • Role of the OS

    Book chapter notes: The operating system (OS) is the software that runs on the bare hardware of a computer and provides essential support for users to develop and use applications in the most efficient and safe manner. The OS will also serve as an abstraction layer for the user/applications to interact with hardware. The OS can serve…

  • Segmentation and Paging

    With paging, all components of a program, including code, static data, the stack, and other data structures, are combined into one contiguous address space divided into fixed-size pages. Segmentation addresses the problem by providing multiple logical address spaces for each process, where each segment can have a different size. A segment is a variable-size block of a…

  • Scheduling of Interactive Processes

    An interactive process communicates with the user by receiving commands or data from the keyboard or a pointing device and responding by generating output to an output device. (monitor, printer, etc) A time quantum, Q, is a small amount of time (typically 10 to 100 milliseconds) during which a process is allowed to use the CPU. The round-robin (RR)…

  • Combined Approaches

    If you work with a system that only has batch processes, or only does real time applications, then your scheduling algorithm selection is much easier. You pick an appropriate choice and go with it… However, the modern desktop OS will often include a combination of batch, interactive, and real-time applications. Therefore picking “a” solution isn’t…

  • File Directories

    A file directory (or folder) is a special-purpose file that records information about other files and possibly other directories. The directory consists of a set of entries, each containing the name of a file followed by other information necessary to access the file. Directories and folders are technically different, especially under Windows. Windows provides other information about folders,…