Concept of Monolithic Kernel

Bhanu Priya
Updated on 29-Nov-2021 10:24:37

3K+ Views

Kernel is the main part of an Operating System. It is the first program that is loaded after the boot loader whenever we start a system. The Kernel is present in the memory until the Operating System is shut-down.Kernel provides an interface between the user and the hardware components of the system. Whenever a process makes a request to the Kernel, then it is called System Call.Functions of KernelThe functions of the kernel are as follows −Process managementAccess computer resourcesDevice managementMemory managementInterrupt handlingI/O communicationTypes of KernelsThe different types of kernels are as follows −Monolithic kernel.Micro kernel.Hybrid kernel.Nano kernel.Exo kernelNow let ... Read More

Reverse a Doubly Linked List using C++

Prateek Jangid
Updated on 29-Nov-2021 10:18:03

758 Views

In this article we have a doubly linked list, and we will explain different approaches to reverse a doubly linked list in C++. For example −Input : {1, 2, 3, 4} Output : {4, 3, 2, 1}There is generally one approach that comes to mind, but we will use two approaches − The normal and unorthodox approach.Normal ApproachIn this approach, we will go through the list, and as we go through it, we reverse it.Example#include using namespace std; class Node {    public:    int data;    Node *next;    Node *prev; }; void reverse(Node **head_ref) ... Read More

Advantages and Disadvantages of Different Operating Systems

Bhanu Priya
Updated on 29-Nov-2021 10:15:51

6K+ Views

To begin with, let us understand the advantages and disadvantages of MS-DOS Operating System.MS-DOS Operating systemAdvantagesThe advantages of MS-DOS Operating System are as follows −MS-DOS is a lightweight system and it allows direct access to all hardware with the help of the command line.This operating system is very lightweight.It also does not support multitasking therefore there is less overhead and less latency.MS_DOS boots the system faster than any other operating system.DisadvantagesThe disadvantages of MS-DOS Operating System are as follows −It has a command line user interface therefore it is very less user friendly.Very few applications are supported in DOS.It is ... Read More

What is a System Program

Bhanu Priya
Updated on 29-Nov-2021 10:13:49

24K+ Views

In an operating system a user is able to use different types of system programs and the system program is responsible for all the application software performance of the computer.The system programs are responsible for the development and execution of a program and they can be used by the help of system calls because system calls define different types of system programs for different tasks.File management − These programs create, delete, copy, rename, print, exit and generally manipulate the files and directory.Status information − It is the information regarding input, output process, storage and the CPU utilization time how the ... Read More

Operating System Design Goals

Bhanu Priya
Updated on 29-Nov-2021 10:11:58

2K+ Views

The design goals in operating system are as follows −Concurrent SystemsOperating systems must handle multiple devices as well as multiple users concurrently. It is a must for modern multiple core architectures. Due to these features the design of the operating system is complex and very difficult to make.Security and PrivacyOperating systems must provide security and privacy to a system. It is important to prevent the malicious user from accessing your system and to prevent the stealing of the user programs.Resource SharingOperating system ensures that the resources of the system must be shared in a correct fashion in between multiple user ... Read More

What is the Computing Environment

Bhanu Priya
Updated on 29-Nov-2021 10:09:22

8K+ Views

In computers there are different types of computing technologies and all are different from each other. By using this we are finding output based on the input given by the user.In a computing environment the user can use a particular computing technology and it is responsible for all the types of input and output given by the computer.The different numbers of computing technologies that are used in OS are as follows −Traditional computingIn traditional computing the user can use a traditional method like static memory allocation and it is mainly useful in single user operating systems.In this technique there will ... Read More

Reversal Algorithm for Right Rotation of an Array using C++

Prateek Jangid
Updated on 29-Nov-2021 10:07:24

792 Views

In this article, we will understand the Reversal algorithm to rotate a given array by k-elements to the right, for example −Input : arr[ ] = { 4, 6, 2, 6, 43, 7, 3, 7 }, k = 4 Output : { 43, 7, 3, 7, 4, 6, 2, 6 } Explanation : Rotating each element of array by 4-element to the right gives { 43, 7, 3, 7, 4, 6, 2, 6 }. Input : arr[ ] = { 8, 5, 8, 2, 1, 4, 9, 3 }, k = 3 Output : { 4, 9, 3, 8, ... Read More

Differentiate Between Programmed I/O and Interrupt Driven I/O

Bhanu Priya
Updated on 29-Nov-2021 10:04:23

18K+ Views

The differences between programmed (Input/Output) I/O and interrupt-driven I/O are as follows −Programmed I/OThis I/O technique is the simplest to exchange data between external devices and processors. In this technique, the processor or Central Processing Unit (CPU) runs or executes a program giving direct control of I/O operations.Processor issues a command to the I/O module and waits for the operation to complete. Also, the processor keeps checking the I/O module status until it finds the completion of the operation.The processor's time is wasted, in case the processor is faster than the I/O module. Its module is considered to be a ... Read More

Reversal Algorithm for Array Rotation Using C++

Prateek Jangid
Updated on 29-Nov-2021 10:04:02

315 Views

In the given problem, we are given an array, and we are required to rotate the array by d elements using a reversal algorithm, for example −Input : arr[] = [1, 2, 3, 4, 5, 6, 7], d = 2 Output : arr[] = [3, 4, 5, 6, 7, 1, 2] Explanation : As you can see we have to rotate this array by d = 2 but our main task is to achieve this by using a reversal technique.We make some calculations for the rotation of the array by reversal technique, and we conclude that −First, we reverse the ... Read More

Return Statement vs Exit in Main Using C++

Prateek Jangid
Updated on 29-Nov-2021 09:58:54

4K+ Views

If you are a programmer, you write the code; If you write the code, you use the function; if you use the function, you use return and exit statements in every function. So In this article, we will discuss what a return statement and exit statement are and their differences.In C++, return is a statement that returns the control of the flow of execution to the function which is calling.Exit statement terminates the program at the point it is used.int main()This is where the execution of the program begins. The program is executed from the main() function, and since ... Read More

Advertisements