Posted Dec 15, 2005 14:05 UTC (Thu) by kpfleming
In reply to: SMP alternatives
Parent article: SMP alternatives
You are confusing mutual exclusion/semaphore locks with 'bus' locks. There is no 'unlock' operation involved here; the 'lock' prefix instruction being referred to only affects the instruction it precedes, and there is an automatic 'unlock' of the bus when that instruction completes.
Switching from uni- to multi-processor mode won't even require holding all the kernel threads/processes in an idle state while this happens, it would just have to complete all the instruction patching before any threads could be allowed to run on the new CPU.
This is a very, very cool idea :-)
to post comments)