A more systematic approach is the second one: utilizing Symmetric Multi-Processor (SMP) kernel, which was invented by Montavista. In the SMP kernel, critical regions are already coded and the kernel parts except the critical regions are fully preventable for SMP. Montavista modifies spin locks in the SMP kernel into preventable locks, applying the SMP technology to preemption improvement in real-time processing.