Categories
Core JAVA

Exception Handling in Java

Exception Handling It is a situation in which the program terminates abnormally. In Java, an exception is divided into two categories:- If an exception occurs at the time of run time of compilation is known as a checked exception. If an exception occurs at the time of compile-time it is known as an unchecked exception. […]

Categories
Operating System

File Access Method

File Access Methods When a file is used, this information must be accessed and read into computer memory. The information in the file can be accessed in several ways. There are two major access methods as follows:- Sequential Access: Information in the file is processed in order, one record after the other. A read operation […]

Categories
Operating System

Types of file

Types of File:- Types of the file, The files are classified into different categories as follows: The name is split into two parts-a names and an extension, The system uses the extension to indicate the type of the file and the type of operations that can be done on that file. Access Methods:- When a […]

Categories
Operating System

File Operation

The operating system can provide system calls to create, write, read, reposition, delete, and truncate files. The file operations are described as followed: File Operation:- Creating a file: Two steps are necessary to create a file. First, space in the file system must be found for the file. Second, an entry for the new file […]

Categories
Operating System

File System Interface

File System:- The file system provides the mechanism for online storage of and access to both data and programs of the operating system and all the users of the computer system. The file system consists of two distinct parts: a collection of files, each storing related data, and a directory structure, which organizes and provides […]

Categories
Operating System

Thrashing

The system spends most of its time shuttling pages between main memory and secondary memory due to frequent page faults. This behavior is known as thrashing. A process is thrashing if it is spending more time paging than executing. This leads to: low CPU utilization and the operating system thinks that it needs to increase […]