xTaskCreate() sometimes never returns in Windows port when creating many tasks

The issue stems from the Windows port implementation. In this port, FreeRTOS tasks are implemented as Windows threads, which are suspended and resumed for scheduling. A deadlock occurs when a thread is suspended while holding operating system locks during startup. As confirmed by others, this behavior is specific to the Windows port.

1 Like