Methods and computer-executable components for real-time scheduling of CPU
resources are disclosed. A performance counter determines when to allocate CPU
resources to a thread. When it is time to allocate the CPU resources, the performance
counter issues a non-maskable interrupt to an advanced programmable interrupt controller
(APIC). The APIC then issues a non-maskable interrupt to the CPU. In response to
receiving the non-maskable interrupt, the CPU allocates resources to the thread.