Jump to content

How does the operating system know the hardware info?

Go to solution Solved by Mira Yurizaki,
5 minutes ago, OlympicAssEater said:

I am curious to know how the operating system able to know the hardware info like how does it recognize that I upgrade my cpu from 2700x to 3700x? Does it get the hardware info through the bios?

The CPU has specific instructions called, appropriately enough, CPUID. Various other peripherals and devices have similar mechanism where if you ping them with a certain instruction, it spits out something regarding the hardware that's connected.

5 minutes ago, OlympicAssEater said:

I am curious to know how the operating system able to know the hardware info like how does it recognize that I upgrade my cpu from 2700x to 3700x? Does it get the hardware info through the bios?

The CPU has specific instructions called, appropriately enough, CPUID. Various other peripherals and devices have similar mechanism where if you ping them with a certain instruction, it spits out something regarding the hardware that's connected.

Link to post
Share on other sites

2 minutes ago, Mira Yurizaki said:

The CPU has specific instructions called, appropriately enough, CPUID. Various other peripherals and devices have similar mechanism where if you ping them with a certain instruction, it spits out something regarding the hardware that's connected.

What about something like ram, gpu, and hard drive?

Link to post
Share on other sites

3 minutes ago, OlympicAssEater said:

What about something like ram, gpu, and hard drive?

Same idea. There's commands you can send to the hardware to get information about it.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×