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 Bhanu Priya
Page 7 of 107
How the OS interfaces between the user, apps , hardware?
A modern computer system consists of the following components − One or more processors Main memory Storage devices (disks) Printers and other output devices Various input/output devices To manage all these components effectively, we require a layer of software called the Operating System (OS). An Operating System is a program that acts as an intermediary or interface between computer users and the computer hardware. It is the most important type of system software in computer systems. Without an operating system, users cannot run application programs on the computer system. OS Interface Structure The ...
Read MoreWhat are the components and shells of UNIX?
The UNIX operating system is built with a layered architecture consisting of four main components that work together to provide a complete computing environment. Understanding these components and the shell interface is essential for working with UNIX systems. Components of UNIX A UNIX system consists of four fundamental components − UNIX System Components USER APPLICATION PROGRAMS OPERATING SYSTEM (UNIX) ...
Read MoreHow is IPC implemented in the Android, MAC, Windows Operating systems?
Inter-process communication (IPC) is a technique of exchanging data between two or more processes for performing some action on that data. These processes may be present on the same computer or at remote locations. The reasons for Inter-process communication are as follows − Sharing information between processes Speed up computation through parallel processing Increasing modularity in application design Resource sharing and coordination between processes Now, let us learn about the IPC mechanisms implemented in different operating systems. Android IPC Mechanisms Android OS uses several methods for sharing data between processes, with Binders being ...
Read MoreWhat are different types of interrupts?
An interrupt is a signal from a device attached to a computer or from a program within the computer that requires the operating system to stop and figure out what to do next. Interrupts allow the system to respond immediately to important events without constantly checking for them. When the CPU processes programs and needs any I/O operation, the interrupt mechanism prevents the CPU from remaining idle while waiting for I/O completion. Instead of continuously polling devices, the CPU can work on other tasks and respond only when an interrupt signals that an operation is ready. How Processor ...
Read MoreDifferentiate between shared memory and message passing model in OS.
Shared memory system is a fundamental model of inter-process communication where cooperating processes communicate by establishing a shared memory region within their address space. This approach allows multiple processes to access the same physical memory location for data exchange. The shared memory concept works on the principle of fastest inter-process communication. When a process wants to initiate communication and has data to share, it establishes a shared memory region in its address space. Another process that wants to communicate must attach itself to the initiating process's shared address space to read the shared data. Message Passing Model ...
Read MoreWhat is a client-server system?
A client-server system is a distributed computing architecture where multiple clients request services from centralized servers over a network. Communication in client-server systems can utilize shared memory and message passing techniques, along with several specialized communication strategies. Strategies for Communication There are three primary strategies for communication in client-server systems − Sockets A socket is defined as an endpoint for communication. A pair of processes communicating over a network employs a pair of sockets, one for each process. A socket is identified by an IP address concatenated with a port number. Sockets generally use client-server ...
Read MoreWhat is a programmed I/O?
Programmed I/O is one of the simplest forms of I/O where the CPU directly controls and monitors all I/O operations. In this technique, the CPU is responsible for transferring data between memory and I/O devices, constantly checking device status and waiting for operations to complete. How Programmed I/O Works The CPU uses special instructions to read from and write to device registers. It continuously polls the device status register to determine when the device is ready for the next operation. This method requires the CPU's full attention during I/O operations. Example − Printing "TUTORIALS" String Consider ...
Read MoreWhat is the concept of thread?
A thread is a lightweight unit of execution within a process and represents the basic unit of CPU utilization. It consists of a program counter, a stack, and a set of registers, allowing multiple execution paths within a single process. Process with Multiple Threads Process Code Section Data Section Files (shared resources) Thread 1 PC, Registers Stack Thread 2 ...
Read MoreWhy do we need shell scripting?
Shell is a software program that acts as a mediator between the kernel and the user. It reads the commands and interprets them by sending requests to execute programs. The shell is essentially a command interpreter that provides an interface for users to interact with the operating system. The shell contains almost 100 system calls that tell the kernel to carry out various tasks for programs. These tasks include − Opening and reading files Writing data to files Obtaining file information and metadata Executing programs and processes Terminating running processes Changing process priorities Getting system time and ...
Read MoreWhat are the process states in Windows and Linux?
A process is not only a program under execution but it is the active state of the program when it is executing and it has its own Process Control Block (PCB). A process requires various resources like memory, CPU, hard disk, and Input/Output devices to function properly. Process States A process has five fundamental states that define its lifecycle in the operating system − Process State Diagram New Ready ...
Read More