thread is of course easy, but kind of an overkill, I , the above poster, and some online article I saw came up with exactly the same code using threads
【在 u****s 的大作中提到】 : 一个thread里读stdout and stderr就可以 : 我们这的这一段code主要就是为了清Runtime.exec()的stdout/stderr buffer
h*0
7 楼
一个thread读,阻塞了怎么办?
【在 u****s 的大作中提到】 : 一个thread里读stdout and stderr就可以 : 我们这的这一段code主要就是为了清Runtime.exec()的stdout/stderr buffer
u*s
8 楼
不会
【在 h*****0 的大作中提到】 : 一个thread读,阻塞了怎么办?
s*e
9 楼
nio was designed to handle duplex. you can take a look there to see if there is sth you need
c*n
10 楼
thanks a lot, this is exactly what I am looking for
there
【在 s******e 的大作中提到】 : nio was designed to handle duplex. you can take a look there to see if there : is sth you need