我在 Java有一个互动进程的问题。 我阅读了科技促发委和科技促发委,并准备为这一进程提供投入。 但是,在科技促发委终止之前,还没有数据。 然后是全部产出。
DBG | Pipe action-STDERR started
DBG | Pipe action-STDIN started
DBG | Pipe action-STDOUT started
STDIN | Try to put some input.
STDIN | I cannot see any output.
STDIN | Nevertheless the interaction works.
STDIN | It works on background.
STDIN | Let s terminate the process to see the truth.
STDIN | quit
STDOUT | Enter some text, please: The text is Try to put some input.
STDOUT | Enter some text, please: The text is I cannot see any output.
STDOUT | Enter some text, please: The text is Nevertheless the
STDOUT | Enter some text, please: The text is interaction works.
STDOUT | Enter some text, please: The text is It works on background.
STDOUT | Enter some text, please: The text is Let s terminate the process to see the truth.
STDOUT | Enter some text, please: The text is quit
STDOUT | Bye!
DBG | Trying to kill thread action-STDOUT
DBG | Trying to kill thread action-STDERR
DBG | Trying to kill thread action-STDIN
DBG | Pipe action-STDERR finished
DBG | Finished
DBG | Pipe action-STDIN finished
DBG | Pipe action-STDOUT finished
与《特别提要》对应的行文是这一过程所写的。 STDIN的前线是我写的。 亚洲开发银行预先确定的线线是经过测试的Java方案撰写的线线,作为假消息。 让我们努力在青少年系统中执行同样的程序。
Enter some text, please: Text
The text is Text
Enter some text, please: quit
The text is quit
Bye!
这些行为完全符合我的期望。 我要求得到一些投入。 我这样做并回答。
I m surprised, that I ve found several post on web including Stackoverflow, but without any responsemark asable Solutions. (例如 问题二读 Java进程中的投入 看来 Java开发商没有处理执行互动进程的问题。 奇怪的是,非互动进程(正在编造)的产出正按顺序排列,而这一过程正在运行。 没有任何问题。 但是,当进程等待用户投入时,产出却受到一些限制。