Basic Programming/Error Solution
Error Solution - stdout Deadlock
Stayner
2023. 3. 6. 10:56
728x90
하나의 exe 프로그램이 Console창을 띄우고 멀티 쓰레드로 여러개의 exe를 실행하면서 Console창에 출력을 하다보니 데드락이 발생하였다.
처음에 왜 프로그램이 멈추는지 한참 디버깅만하다가 추후에 문제를 발견하였다.
https://stackoverflow.com/questions/48646666/seemingly-deadlock-in-writefile-on-stdout
Seemingly deadlock in WriteFile on stdout
I am writing a small application which handles a predefined exchange of messages over the serial port(basically a custom application level protocol). The main 2 parts of it are a state-machine which
stackoverflow.com
앞으로 Console 창에 출력을 할 때에는 조심해야 될 듯 하다.
728x90