- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Dual-Mode and Multi-Mode Operation in Operating System
There are two modes of operation in the operating system to make sure it works correctly. These are user mode and kernel mode.
A diagram that illustrates the transition from user mode to kernel mode and back again is as follows −
The following are the modes −
- User Mode:
The system is in user mode when the operating system is running a user application such as handling a text editor. The transition from user mode to kernel mode occurs when the application requests the help of operating system or an interrupt or a system call occurs.
The mode bit is set to 1 in the user mode. It is changed from 1 to 0 when switching from user mode to kernel mode.
- Kernel Mode
The system starts in kernel mode when it boots and after the operating system is loaded, it executes applications in user mode. There are some privileged instructions that can only be executed in kernel mode. These are interrupt instructions, input output management etc. If the privileged instructions are executed in user mode, it is illegal and a trap is generated.
The mode bit is set to 0 in the kernel mode. It is changed from 0 to 1 when switching from kernel mode to user mode.
The concept of modes of operation in operating system can be extended beyond the dual mode. This is known as the multimode system. In those cases the more than 1 bit is used by the CPU to set and handle the mode.
An example of the multimode system can be described by the systems that support virtualisation. These CPU’s have a separate mode that specifies when the virtual machine manager (VMM) and the virtualisation management software is in control of the system.
For these systems, the virtual mode has more privileges than user mode but less than kernel mode.
- Related Articles
- Dual Mode operations in OS in C++
- Booting and Dual Booting of Operating System
- Explain write mode operation of files in C language
- Explain read mode operation of files in C language
- Explain append mode operation of files in C language
- Dridex Malware – Mode of Operation, How to Detect
- Opening diagnosis mode automatically in SAP HANA system
- Windows in safe mode troubleshoots all system issues
- Supervisor Mode (Privileged Mode)
- Set Database From Single User Mode to Multi User in SQL?
- User Mode vs Kernel Mode
- Difference between Memory Address Mode and Register Address Mode
- Differentiate between ad-hoc mode and Wi-Fi Direct mode in 802.11 architecture
- Transmission mode
- Differentiate between infrastructure mode and the ad hoc mode of IEEE 802.11