Hyams Iftach <[EMAIL PROTECTED]> writes: > There are test-and-set instructions
Those are normally atomic - that's their whole point, isn't it? > Keep in mind that application for the common desktop could safely > assume one CPU but Intel's hyper threading technology break that > founding. The OS (and everything above) sees a hyperthreaded processor as SMP. Try to install a Linux distro such as Red Hat (Enterprise or Fedora) on a UP Xeon machine - it will pick an SMP kernel, with good reason. So will Windows. But let me repeat what I wrote earlier: you can *never* assume one CPU, with or without hyperthreading. Code that does not work properly on SMP is *broken*, for the simple reason that someone, somewhere, *will* try to run it on SMP. And that will lead to a major, prolonged headache. -- Oleg Goldshmidt | [EMAIL PROTECTED] ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
