So,
Is it safe to assume that any system that supports multiple processors will split a two-threaded program down the middle if nothing else is going on?
So,
Is it safe to assume that any system that supports multiple processors will split a two-threaded program down the middle if nothing else is going on?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Well that would depend on your OS.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Well sure. I guess my question is -- if it seems obvious to be using both processors, will that happen?
Take my laptop with Vista Home Premium and Ubuntu 8.04 on it. I have an Intel Dual-Core in there. Now, I know how my computer behaves. What can I expect from other systems?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Whilst Salem is technically correct, I am personally not aware of any OS that DOESN'T do that, if it supports multiple processors or multiple cores. Certainly, Linux, MacOS, Windows and Solaris works that way.
If you have a specific OS in mind, please tell us which it is.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Nope, just a general question. Thanks.
"If you tell the truth, you don't have to remember anything"
-Mark Twain