Synchronized reading data from Process's empty stdout causes deadlock [duplicate]
问题 This question already has an answer here : Reading from a process, StreamReader.Peek() not working as expected (1 answer) Closed 3 years ago . I am having trouble setting up a c# application that creates and interacts with a python process1. A simplistic example is given below. EDIT: Further research on SO unveiled that my question is a possible duplicate. A potentially related known bug in the .NET Framework is duscussed here and here. It seems that back in 2014 the only easy workaround is