What does NTSTATUS 0xC0000129 (STATUS_TOO_MANY_THREADS) mean?

 
Previous Next
STATUS_FILE_CLOSED STATUS_THREAD_NOT_IN_PROCESS

STATUS_TOO_MANY_THREADS

The requested operation cannot run with the current process thread count

This NTSTATUS is not simply a global “thread allocation failed” message. The documented description includes operations whose contract requires a process to have zero or one thread, such as certain primary-token changes. A process with more threads than that operation permits can return this status even when the system has ample memory.

Record the API and process thread count before diagnosing resource exhaustion. Identify whether the operation requires a single-threaded process phase, especially early process setup or security-context changes. Killing arbitrary worker threads is not a safe repair; coordinate the operation before additional threads are created or use the supported process-creation path.

What to inspect

  • Capture the exact API and current thread count in the target process.
  • Check whether the operation documents a zero- or one-thread precondition.
  • Move the operation to the correct lifecycle phase instead of terminating unrelated workers.

References


Looking for a different code? Search another status or error code.