Processors & Rings: Exploring Why OSs Only Use 2

  • Thread starter Alain De Vos
  • Start date
  • Tags
    Rings
In summary, there are two rings in a processor because it is more efficient and historical reasons. There is no need for more than two rings because it is more efficient for DDs and multiuser machines.
  • #1
Alain De Vos
36
1
Most processors have 4 rings. Why do operating systems only use 2.
Historical reason ? Overhead ? There is no need for more than two rings ?
 
Technology news on Phys.org
  • #2
I think its choice and the environment where a machine is used:

Windows is used in home and office with normally one user per machine hence two rings are sufficient.

Mainframe multi-user machines would take advantage of 3 rings or more.

Multics and OS/2 used more than 2 rings. Multics complexity lead ATT researchers to reject it and develop a simpler OS Unix

Anyway, here's some more info on it:

https://en.wikipedia.org/wiki/Protection_ring
 
Last edited:
  • Like
Likes Silicon Waffle
  • #3
Alain De Vos said:
Most processors have 4 rings. Why do operating systems only use 2.
Historical reason ? Overhead ? There is no need for more than two rings ?
I often heard it from a few friends of mine who used to apply for positions that are basic OS or device drivers (DDs) related.
Historical reason concerns low-level system accessing modes, in which processes used to compete or use each other address spaces inadvertently . Layering would help them i.e (1) work in a more secure environment, (2) backtrack their switches between modes easier e.g your application may switch from ring 3 to ring 0 to get a function work for you but still under the supervision of your kernel, etc. Ring 1,2 are where all DDs, which are not software applications by definition, are being used. So applications e.g guest OSes created by virtual machines making most use of DDs might have their code resources stored in these rings.
 
  • #4
Windows used to have ports for Alpha and MIPS. Both of these have only two rings. MacOS was on the Power architecture and 68K before that. These have only two as well. Linux grew up on x86 so I guess Mr. Torvalds could have used all four but that would have complicated future porting efforts. He either thought of this or just didn't need more.

BoB
 
  • #5
The important abstraction is privileged and unprivileged. The degree of privilege is an extension of this, but the main idea of isolating tasks that require elevated privileges from those that do not is the important insight.
 

1. Why do operating systems only use 2 processors?

Operating systems only use 2 processors because of the limitations of the x86 architecture, which is the most commonly used architecture in personal computers. This architecture only supports a maximum of two processors, also known as cores.

2. Can't operating systems be designed to use more than 2 processors?

Yes, operating systems can be designed to use more than 2 processors. However, this would require a different architecture, such as ARM or PowerPC, which support more than 2 processors. Additionally, it would require significant changes to the hardware and software of the operating system, making it more complex and expensive.

3. How do processors and rings relate to each other in operating systems?

Processors and rings are related in operating systems as they both play important roles in managing and protecting system resources. Processors are responsible for executing instructions and rings are used to restrict access to certain areas of memory and system resources.

4. Why are only 2 rings used in operating systems?

Only 2 rings are used in operating systems because this is the most efficient and practical way to manage system resources and provide protection. With only 2 rings, the operating system can easily distinguish between privileged and non-privileged processes, allowing for better security and performance.

5. Are there any disadvantages to using only 2 processors in operating systems?

One potential disadvantage of using only 2 processors in operating systems is that it limits the amount of parallel processing that can be done. This can result in slower performance for tasks that require more processing power. However, advancements in technology have allowed for more efficient use of 2 processors, making this less of an issue in modern operating systems.

Similar threads

  • Sci-Fi Writing and World Building
Replies
18
Views
2K
  • Sci-Fi Writing and World Building
Replies
9
Views
2K
  • Sci-Fi Writing and World Building
Replies
4
Views
2K
  • Programming and Computer Science
Replies
14
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
215
  • Computing and Technology
2
Replies
52
Views
3K
  • Differential Equations
Replies
1
Views
693
Replies
3
Views
374
  • Sci-Fi Writing and World Building
2
Replies
52
Views
4K
Back
Top