Question

Four modes vs. two modes of operationg systems (kernel / user)

The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection and sharing of system resources among processes. The accessmode determines:

Instruction execution privileges: What instructions the processor may execute
Memory access privileges: Which locations in virtual memory the current instruc-tion may access

The four modes are as follows:
Kernel: Executes the kernel of the VMS operating system, which includes memo-ry management, interrupt handling, and I/ O operations
Executive: Executes many of the operating system service calls, including file and record ( disk and tape) management routines
Supervisor: Executes other operating system services, such as responses to user commands
User: Executes user programs, plus utilities such as compilers, editors, linkers, and debuggers

A process executing in a less- privileged mode often needs to call a procedure that executes in a more- privileged mode; for example, a user program requires anoperat-ing system service. This call is achieved by using a change- mode ( CHM) instruction, which causes an interrupt that transfers control to a routine at thenew access mode. A return is made by executing the REI ( return from exception or interrupt) instruction.

a. A number of operating systems have two modes, kernel and user. What are the advantages and disadvantages of providing four modes instead of two?
b. Can you make a case for even more than four modes?

0 0
Add a comment Improve this question Transcribed image text
✔ Recommended Answer
Answer #1

a. The advantages and disadvantages of providing four modes instead of two:

Usually, many operating systems have two modes: kernel and user, instead of two, and some operating systems have four modes: the kernel, executive, supervisor, and user.

Advantage of having four modes instead of two modes:

• If the operating system has four modes, it can control access to the memory.

• It is allowing the finer tuning of memory protection.

The disadvantage of having four modes instead of two modes:

• If the operating system has four modes, then the system has more complexity and more system overhead.

• Consider the scenario, if the procedures are running on the access modes such as the kernel, executive, supervisor, and user, all require separate stacks with appropriate accessibility.

b. Case for more than four-nodes:

In principle, if the operating system has more modes, it has more flexibility, but it looks difficult to explain the system having more than four modes.

answered by: codegates
Add a comment
Know the answer?
Add Answer to:
Four modes vs. two modes of operationg systems (kernel / user)
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection...

    The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection and sharing of system resources among processes. The access mode determines:• Instruction execution privileges: What instructions the processor may execute• Memory access privileges: Which locations in virtual memory the current instruc-tion may access The four modes are as follows:• Kernel: Executes the kernel of the VMS operating system, which includes memo-ry management, interrupt handling, and I/ O operations• Executive: Executes many of the operating...

  • 1. Can an operating system implement the two operational modes (user vs system) if the hardware...

    1. Can an operating system implement the two operational modes (user vs system) if the hardware does not support a mode bit? Explain. 2. Give an example of an operating system that does not implement the dual-mode protection. 3. Explain the main difference that exists between multiprogramming and multitasking.

  • 1 of 2 EEL-4734 Midterm Take heme exam due at 11:59 pm, Saturday, July 14, 2018...

    1 of 2 EEL-4734 Midterm Take heme exam due at 11:59 pm, Saturday, July 14, 2018 Namc PanthertD Multiple chaices: Based ea the lesthoek, ehoose ealy aaswer that best matches with the question. (S% each question, 1. A mochanism by which other medules, such as 1O and memory, may intorrupt the normal sequencing of te processor is callod (A) Communication (B) Trap (C ) Immut (D) ??(E) None of the above 2. A mode of operation that peovides for the...

  • TRUE/FALSE QUESTIONS:  Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for...

    TRUE/FALSE QUESTIONS:  Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for all potential types of non-standard inputs that might be exploited by an attacker to subvert a program. 2. Without suitable synchronization of accesses it is possible that values may be corrupted, or changes lost, due to over-lapping access, use, and replacement of shared values. 3. The biggest change of the nature in Windows XP SP2 was to change all anonymous remote procedure call (RPC)...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT