Categories
Core JAVA

Stack in Java

Stack Stack in Java, The evaluation of stack is always LIFO(last in first out) order. The operation on the stack always for the top of the stack. The stack is non-synchronous in nature. The duplicate element can be stored by using the stack data structure. Index of stack always starts with 1. Methods in stack:- […]

Categories
Core JAVA

Collection Framework in Java

Collection Framework In java collection framework is classes and interfaces which are generally used to implement data structure. The collection is a group of similar types of object and itself is a predefined interface present in java. util package. All the operation which are generally performed on a data structure such as searching, sorting, insertion, […]

Categories
Operating System

Transforming I/O request to Hardware Operations

Consider reading a file from disk for a process: Determine device holding file Translate name to devise representation Physically read data from disk into the buffer Make data available to requesting process Return control to process The following steps have described the lifecycle of a blocking read request: A process issues a blocking read() system […]

Categories
Operating System

Kernel I/O Subsystem

The kernel provides many services related to I/O. Several services (i.e. scheduling, buffering, caching, spooling, device reservation and error handling) are provided by the kernel’s I/O subsystem and build on the hardware and device driver infrastructure. I/O Scheduling: It is used to schedule a set of I/O requests that means to determine a good order […]

Categories
Operating System

Disk Management in Operating System

Disk Management The operating system is responsible for several aspects of disk management. Disk Formatting A new magnetic disk is a blank slate. It is just platters of a magnetic recording material. Before a disk can store data, it must be divided into sectors that the disk controller can read and write. This process is […]

Categories
Operating System

Hard Disk Structure

Disk Structure The magnetic disk provides the bulk of secondary storage for modern computer systems. Each disk platter has a flat circular shape, like a CD. Common platter diameters range from 1.8 to 5.25 inches. The two surfaces of a platter are covered with magnetic material. We store information by recording it magnetically on the […]