有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java哪些平台的缓冲区大小有限?

Groovy Process Management页面提到:

Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock

此代码段来自JDKAPI。这些平台是什么


共 (2) 个答案

  1. # 1 楼答案

    我知道这至少发生在Windows上。这就是为什么孩子的stdin和stdout必须在另一个线程中读取的原因

  2. # 2 楼答案

    在Linux和(我希望)Solaris上也会发生这种情况

    事实上,我会惊讶地发现任何传统操作系统平台都能为进程到进程流提供无限缓冲;i、 e.UNIX术语中的管道