Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by David Meador
116 articles
Major Activities of an Operating System with Regard to Process Management
Process management is one of the most critical functions of an operating system. A process is an active program under execution, containing program code, program counter, process stack, registers, and other execution context. The OS performs several key activities to manage processes efficiently, including process scheduling and context switching. Process Scheduling The operating system uses multiple scheduling queues to organize and manage processes at different stages of execution. When processes enter the system, they are placed in the job queue. Processes ready to execute in main memory are kept in the ready queue, while those waiting for I/O ...
Read MoreMajor Activities of an Operating System with Regard to Secondary Storage Management
Secondary storage devices are non-volatile devices where data is stored for long-term storage. Disks are the mainly used secondary storage devices, providing the bulk of secondary storage in modern operating systems. The main activity performed in secondary storage management is disk scheduling. This involves determining the order in which disk I/O requests are serviced to minimize seek time and optimize performance. There are many disk scheduling algorithms, with the most important being FCFS, SSTF, SCAN, and LOOK scheduling. Disk Scheduling Overview Disk Track (0 to 199) ...
Read MoreErasable Programmable Read Only Memory (EPROM)
Erasable Programmable Read Only Memory (EPROM) is a non-volatile memory chip that retains data even when power is switched off. Each EPROM is individually programmed by an electronic device, and the stored data can be erased by exposing the chip to strong ultraviolet light for reprogramming. An EPROM contains a transparent fused quartz window at the top of the package which allows exposure to ultraviolet light. The silicon chip is visible through this window, making it easily identifiable among other memory types. How EPROM Works Each storage location in EPROM consists of a floating-gate field-effect transistor. This ...
Read MoreComputer System Architecture
A computer system is basically a machine that simplifies complicated tasks. It should maximize performance and reduce costs as well as power consumption. The different components in the Computer System Architecture are Input Unit, Output Unit, Storage Unit, Arithmetic Logic Unit, Control Unit etc. A diagram that shows the flow of data between these units is as follows − Computer System Architecture Control Unit Input Unit ...
Read MoreShort-term vs medium-term vs long-term scheduling
Process Scheduling handles the selection of a process for the processor on the basis of a scheduling algorithm and also the removal of a process from the processor. It is an important part of multiprogramming in operating systems. Process scheduling involves three levels: short-term scheduling, medium-term scheduling, and long-term scheduling. Each operates at different time intervals and serves distinct purposes in the overall system performance. Long-Term Scheduling Long-term scheduling involves selecting processes from the storage pool in secondary memory and loading them into the ready queue in main memory for execution. This is handled by the long-term ...
Read MoreDistributed Systems
A distributed system contains multiple nodes that are physically separate but linked together using the network. All the nodes in this system communicate with each other and handle processes in tandem. Each of these nodes contains a small part of the distributed operating system software. Distributed System Architecture Network Node 1 OS Part A Node 2 OS Part ...
Read MoreSemaphores in Operating System
Semaphores are integer variables used to solve the critical section problem through two atomic operations: wait and signal. They provide a synchronization mechanism that allows processes to coordinate access to shared resources safely. How Semaphores Work Semaphores use two fundamental operations that must be executed atomically (without interruption): Wait Operation The wait operation decrements the value of its argument S if it is positive. If S is zero or negative, the process blocks until the semaphore becomes positive. wait(S) { while (S
Read MoreMonitors vs Semaphores
Monitors and semaphores are synchronization mechanisms used to control process access to shared resources through mutual exclusion. While both achieve process synchronization, they differ significantly in their implementation, usage complexity, and error handling capabilities. Monitors Monitors are high-level synchronization constructs designed to overcome timing errors and programming complexity associated with semaphores. They are abstract data types that encapsulate shared data variables and procedures within a single unit. In a monitor, shared data variables cannot be accessed directly by processes. Instead, processes must use the monitor's procedures to interact with the shared data. Only one process can be ...
Read MoreGraphical User Interface (GUI)
Graphical User Interface (GUI) is an interface that allows users to interact with different electronic devices using icons, visual indicators, and graphical elements. The graphical user interfaces were created because command line interfaces were quite complicated and it was difficult to learn all the commands in it. In today's times, graphical user interfaces are used in many devices such as mobiles, MP3 players, gaming devices, smartphones, desktop computers, and tablets. The GUI acts as an intermediary layer between the user and the underlying operating system, translating user interactions into system commands. GUI Position ...
Read MoreProcess Scheduling Fundamentals
Process Scheduling handles the selection of a process for the processor based on a scheduling algorithm and the removal of a process from the processor. It is an important part of multiprogramming in operating systems, enabling efficient CPU utilization and fair resource distribution among competing processes. Process Scheduling Algorithms Process scheduling algorithms determine which process gets CPU access next and how resources are distributed among processes. Each algorithm has different characteristics regarding fairness, throughput, and response time. Major Scheduling Algorithms First Come First Served (FCFS) − Handles processes in the order they arrive in the ...
Read More