ERROR_NO_YIELD_PERFORMED - 721 (0x2D1)

A yield execution was performed and no thread was available to run.

Updated: Feb 21, 2026

Technical Meaning

The error code ERROR_NO_YIELD_PERFORMED indicates that a yield execution was attempted, but no thread was available to run. This typically occurs in the context of thread scheduling and process management within the Windows operating system.

Error Details

When a thread yields control (e.g., through a call to Sleep, YieldProcessor, or similar functions), it releases the processor for other threads to execute. If no other threads are available, this error is generated. This can happen in scenarios where all threads are blocked or waiting on some resource.

Usage Context

This error code is relevant primarily within the context of thread management and process scheduling. It may be encountered during development or debugging of applications that involve complex threading behavior.

Developer Interpretation

Upon encountering this error, developers should consider the following:

  • Verify that all threads are properly initialized and running.
  • Ensure that there are no deadlocks or race conditions preventing other threads from executing.
  • Check for any resource constraints or limitations that might be blocking thread execution.
  • Review the application's threading model to ensure it is designed to handle scenarios where threads may yield control.

Related Errors

  • ERROR_NO_SYSTEM_RESOURCES (8) - Indicates insufficient system resources to complete a request, which could indirectly lead to this error if resource constraints prevent yielding.
  • ERROR_TIMEOUT (258) - May be related in cases where a thread is waiting for a timeout condition that never occurs.

FAQ

Q: What does the ERROR_NO_YIELD_PERFORMED error indicate?

A: It indicates that a yield execution was attempted, but no other threads were available to run. This typically points to issues with thread scheduling or resource constraints.

Q: How can I troubleshoot this issue?

A: Review your application's threading model and ensure there are no deadlocks or race conditions. Check for resource constraints that might be preventing thread execution.

Summary

The ERROR_NO_YIELD_PERFORMED error code is a specific indication of issues in thread management within the Windows operating system. Developers should focus on ensuring proper thread initialization, avoiding deadlock scenarios, and managing resources effectively to prevent this error from occurring.