A method and system for decoupling a central processing unit (CPU) of a
plurality of hot CPUs from its assigned tasks. The hot CPUs are managed
by an operating system of a computer system. A special flag is set,
denoting that the CPU is to be decoupled from its assigned tasks. A
special task coupled to the CPU is given a suitable scheduling policy and
priority, wherein the special task gets enough continuous execution time
to finish its job before another task executes on the CPU. The special
task examines the special flag and decouples the first CPU from its
assigned tasks after determining that the special flag has been set,
wherein the special task does not relinquish control of the CPU. The
decoupling of tasks from the CPU leaves at least one remaining CPU and
occurs while the at least one remaining CPU is hot.