Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
Can an 32-bit OS run on multiple 64-bit CPU cores?
March 1, 2020 at 2:32 pm
Hey, guys!
So, I've tried to implement a MergeSort algorithm in standard C++11 that will run on as many CPU cores simultaneously as it can. You can see the source code here. However, I've noticed that if I run that program on 32-bit Windows 10 on my laptop (I have 32-bit Windows 10 and 64-bit Oracle Linux), here is the 32-bit Windows executable, it always claims to be running in a single thread. On the other hand, if I run it on 64-bit Linux on that same computer, it usually claims to run in 15 threads. What do you think is going on here? The processor in my laptop is Intel Core i5, 8th Generation. I know that running a 32-bit OS prevents the modern processor from using some registers, but I fail to see how it can possibly prevent it from using multiple CPU cores. The OS, these days, usually detects other CPU cores using ACPI, and it obviously shouldn't matter if the OS is 64-bit or 32-bit. But, apparently, it somehow does.
Posts: 30726
Threads: 2123
Joined: May 24, 2012
Reputation:
71
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 1, 2020 at 2:46 pm
(March 1, 2020 at 2:32 pm)FlatAssembler Wrote: Hey, guys!
So, I've tried to implement a MergeSort algorithm in standard C++11 that will run on as many CPU cores simultaneously as it can. You can see the source code here. However, I've noticed that if I run that program on 32-bit Windows 10 on my laptop (I have 32-bit Windows 10 and 64-bit Oracle Linux), here is the 32-bit Windows executable, it always claims to be running in a single thread. On the other hand, if I run it on 64-bit Linux on that same computer, it usually claims to run in 15 threads. What do you think is going on here? The processor in my laptop is Intel Core i5, 8th Generation. I know that running a 32-bit OS prevents the modern processor from using some registers, but I fail to see how it can possibly prevent it from using multiple CPU cores. The OS, these days, usually detects other CPU cores using ACPI, and it obviously shouldn't matter if the OS is 64-bit or 32-bit. But, apparently, it somehow does.
Corporate competition.
McDonald's and Burger King both sell burgers, and sure, the meet and buns are interchangeable, but they don't like the competition.
Posts: 19881
Threads: 324
Joined: July 31, 2016
Reputation:
34
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 1, 2020 at 3:06 pm
"It appears to be in some kind of English." Steve Rogers
Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 3, 2020 at 6:29 am
(March 1, 2020 at 2:46 pm)Brian37 Wrote: (March 1, 2020 at 2:32 pm)FlatAssembler Wrote: Hey, guys!
So, I've tried to implement a MergeSort algorithm in standard C++11 that will run on as many CPU cores simultaneously as it can. You can see the source code here. However, I've noticed that if I run that program on 32-bit Windows 10 on my laptop (I have 32-bit Windows 10 and 64-bit Oracle Linux), here is the 32-bit Windows executable, it always claims to be running in a single thread. On the other hand, if I run it on 64-bit Linux on that same computer, it usually claims to run in 15 threads. What do you think is going on here? The processor in my laptop is Intel Core i5, 8th Generation. I know that running a 32-bit OS prevents the modern processor from using some registers, but I fail to see how it can possibly prevent it from using multiple CPU cores. The OS, these days, usually detects other CPU cores using ACPI, and it obviously shouldn't matter if the OS is 64-bit or 32-bit. But, apparently, it somehow does.
Corporate competition.
McDonald's and Burger King both sell burgers, and sure, the meet and buns are interchangeable, but they don't like the competition. Err... Are you sure you posted this in the right thread?
Posts: 30726
Threads: 2123
Joined: May 24, 2012
Reputation:
71
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 3, 2020 at 7:42 am
(March 3, 2020 at 6:29 am)FlatAssembler Wrote: (March 1, 2020 at 2:46 pm)Brian37 Wrote: Corporate competition.
McDonald's and Burger King both sell burgers, and sure, the meet and buns are interchangeable, but they don't like the competition. Err... Are you sure you posted this in the right thread?
Yes. Computer and software companies have patents and copyrights on their products and have licencing agreements with each other, so not all software or hardware are interchangable. Just like a restaurant won't let you bring food in from another joint and eat it out in the open.
I am not saying it is impossible to make the changes you want, but if you can't then one reason may be because of what I said above.
Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 3, 2020 at 12:25 pm
(March 3, 2020 at 7:42 am)Brian37 Wrote: (March 3, 2020 at 6:29 am)FlatAssembler Wrote: Err... Are you sure you posted this in the right thread?
Yes. Computer and software companies have patents and copyrights on their products and have licencing agreements with each other, so not all software or hardware are interchangable. Just like a restaurant won't let you bring food in from another joint and eat it out in the open.
I am not saying it is impossible to make the changes you want, but if you can't then one reason may be because of what I said above.
My question was why does 32-bit Windows 10, if run on Intel Core i5 8th Generation, appear to run only on 1 core. If the processor was somehow modified to accept only certain OS-es, what I'd reasonably expect would be that it rejects free Linux, rather than proprietary Windows 10.
Posts: 2872
Threads: 8
Joined: October 4, 2017
Reputation:
22
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 3, 2020 at 2:52 pm
(March 3, 2020 at 12:25 pm)FlatAssembler Wrote: (March 3, 2020 at 7:42 am)Brian37 Wrote: Yes. Computer and software companies have patents and copyrights on their products and have licencing agreements with each other, so not all software or hardware are interchangable. Just like a restaurant won't let you bring food in from another joint and eat it out in the open.
I am not saying it is impossible to make the changes you want, but if you can't then one reason may be because of what I said above.
My question was why does 32-bit Windows 10, if run on Intel Core i5 8th Generation, appear to run only on 1 core. If the processor was somehow modified to accept only certain OS-es, what I'd reasonably expect would be that it rejects free Linux, rather than proprietary Windows 10. https://docs.microsoft.com/en-us/windows...sor-groups
So Win32 can't do it.
Posts: 2020
Threads: 133
Joined: July 26, 2017
Reputation:
5
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 4, 2020 at 1:58 am
(March 3, 2020 at 2:52 pm)Abaddon_ire Wrote: (March 3, 2020 at 12:25 pm)FlatAssembler Wrote: My question was why does 32-bit Windows 10, if run on Intel Core i5 8th Generation, appear to run only on 1 core. If the processor was somehow modified to accept only certain OS-es, what I'd reasonably expect would be that it rejects free Linux, rather than proprietary Windows 10. https://docs.microsoft.com/en-us/windows...sor-groups
So Win32 can't do it.
So, if I understand you correctly, using multiple CPUs is no longer done using BIOS?
Posts: 2872
Threads: 8
Joined: October 4, 2017
Reputation:
22
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 4, 2020 at 5:46 am
(March 4, 2020 at 1:58 am)FlatAssembler Wrote: (March 3, 2020 at 2:52 pm)Abaddon_ire Wrote: https://docs.microsoft.com/en-us/windows...sor-groups
So Win32 can't do it.
So, if I understand you correctly, using multiple CPUs is no longer done using BIOS? BIOS is only half the story. The OS must be written to do it also.
Posts: 46660
Threads: 543
Joined: July 24, 2013
Reputation:
108
RE: Can an 32-bit OS run on multiple 64-bit CPU cores?
March 4, 2020 at 6:03 am
Just poking me head in to say I have no idea what you people are talking about, but I could do with a burger.
Boru
‘I can’t be having with this.’ - Esmeralda Weatherwax
|