Bhanu Priya

Bhanu Priya

1,060 Articles Published

Articles by Bhanu Priya

Page 47 of 106

What are the Privileged and Non-Privileged instructions in Operating System?

Bhanu Priya
Bhanu Priya
Updated on 01-Dec-2021 4K+ Views

Let us understand the privileged instructions in an operating system.Privileged instructionsThese are called machine level instructions that are executed when the processor is in privileged mode.The examples include the following −Shut down the systemChange the contents of a control register.Jump into kernel code.Sending commands to I/O devices.The processor is said to be in privileged mode when the functions in the OS kernel are executing.Suppose an attempt is made to execute a privileged instruction in non-privileged mode which causes a run-time error.Generally the user mode of the operating system is called non-privileged mode and kernel mode of the operating system is ...

Read More

What are the five process states in the Linux kernel ?

Bhanu Priya
Bhanu Priya
Updated on 01-Dec-2021 1K+ Views

The five process states in the Linux kernel are as follows −Running − This is a state where a process is either in running or ready to run. It is the most active state of all. In this state, the process is getting system resources.Interruptible − This state is a blocked state of a process which waits for an event or a particular time slot.Uninterruptible − It is also a blocked state and it has a timeout value before going to sleep. It will awake when the timeout value sets off.Stopped − Once the process is completed, this state occurs ...

Read More

What are the different types of process states and queues?

Bhanu Priya
Bhanu Priya
Updated on 01-Dec-2021 2K+ Views

Let us begin by understanding the types of process states.Types of Process StatesThere are different types of Process States which are as follows −New − The process is about to be created in this state but not yet created, it is the program which is present in secondary memory that will be picked up by OS to create the process.Ready − The process enters the ready state after the creation of a process that means the process is loaded into the main memory.Running − The process is chosen by the CPU for instructions and the executions within the process and ...

Read More

What is the relationship between process states and the machine cycle?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 1K+ Views

Let us understand what a process state is.Process StatesProcess states are the states in which the process is currently residing. There are basically five states of processes −New − The process is about to be created in this state but not yet created. It is the program which is present in secondary memory that will be picked up by OS to create the process.Ready − The process enters the ready state after the creation of a process that means the process is loaded into the main memory.Running − The process is chosen by the CPU for instructions and the executions ...

Read More

What are multithreading models?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 620 Views

Threads that are available at user level are called as user threads. Threads available at kernel level are called kernel threads. User threads are supported above the kernel and are managed without kernel support and kernel threads are supported and managed directly by the operating system.Types of multithreading modelsThe different types of multithreading models are as follows −Many-to-one modelIt maps many user threads to one kernel thread. The thread management is based on the thread library in user space, because of this it is efficient but the entire process is going to block if a thread makes a blocking system ...

Read More

What are different types of CPU scheduling and the scheduling criteria?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 5K+ Views

Process scheduler assigns different processes to CPU based on particular scheduling algorithms.The scheduling is responsible for taking part in the scheduling process that is the set of the policies and mechanisms to control the order in which the jobs can be completed. By using the scheduling algorithms the scheduler is done.Types of Process Scheduling AlgorithmsThe different types of process scheduling algorithms are as follows −FCFS(First Come First Serve)SJF or shortest job next.Round Robin.Shortest Remaining time.Priority Scheduling.Multiple level queues.The scheduling criterion is responsible for helping in the design of the good scheduler. These criteria are as follows −CPU UtilizationThe scheduling algorithm ...

Read More

What are Scheduling Queues?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 18K+ Views

The processes that are entering into the system are stored in the Job Queue. Suppose if the processes are in the Ready state are generally placed in the Ready Queue.The processes waiting for a device are placed in Device Queues. There are unique device queues which are available for every I/O device.First place a new process in the Ready queue and then it waits in the ready queue till it is selected for execution.Once the process is assigned to the CPU and is executing, any one of the following events occur −The process issue an I/O request, and then placed ...

Read More

What is multithreaded programming?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 2K+ Views

A thread is a small unit of CPU utilisation. It comprises a thread ID, a program counter, a register set and a stack. It shares with other threads which belong to the same process having code segment, data section and other operating system resources like open files and signals.A heavy weight process has a single thread of control. If a process has multiple threads of control, it can perform more than one task at a time. Many software packages that run in modern PC’s are multi-threaded. Here, the application is implemented as a separate process with several threads of control.For ...

Read More

What is the motivation to implement a micro-kernel in an operating system?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 254 Views

Micro kernel is one of the classifications of kernel and is often represented as μ- kernel. It is software which provides a mechanism to implement an operating system.The functions or mechanism for implementation are as follows −Inter-process communicationThread managementLow level address space managementIn the micro kernel, user services and kernel services are kept in different address spaces. User services are placed in user address space. Kernel services are placed in kernel services. Therefore, the size of the kernel and size of the operating system is minimized or reduced.Given below is the diagram of micro kernel −It is very secure and ...

Read More

What are the types of process scheduling algorithms and which algorithms lead to starvation?

Bhanu Priya
Bhanu Priya
Updated on 30-Nov-2021 4K+ Views

Process scheduler assigns different processes to CPU based on particular scheduling algorithms.Types of Process Scheduling AlgorithmsThe different types of process scheduling algorithms are as follows −FCFSAs the name goes, jobs are executed on a first come first serve basis. It’s a simple algorithm based on FIFO that's first in first out. It is pre-emptive and non pre-emptive and its performance is poor based on its average waiting time.SJFIt is also known as the shortest job first or shortest job next. It is a pre-emptive and non pre-emptive type algorithm that is easy to implement in batch systems and is best ...

Read More
Showing 461–470 of 1,060 articles
« Prev 1 45 46 47 48 49 106 Next »
Advertisements