Concept Flow - Stack high water mark monitoring
Task starts running
Stack usage increases
Check current stack usage
Compare with previous high water mark
Update HWM
Task continues or ends
This flow shows how FreeRTOS tracks the deepest stack usage of a task by checking current usage and updating the high water mark if needed.