开发者

Multiple processes share the same output/input streams

开发者 https://www.devze.com 2023-02-20 15:25 出处:网络
I wrote a java program to start a C program as a process and I create many processes of that C program that are worki开发者_StackOverflowng simultaneously. Each process log its output to a different f

I wrote a java program to start a C program as a process and I create many processes of that C program that are worki开发者_StackOverflowng simultaneously. Each process log its output to a different file. It worked well but the problem is that when one process flush an output it is written in all the log files which means that all process share the same output/input streams

Is there a way to separate each process output/input stream so that they don't log to all files?

0

精彩评论

暂无评论...
验证码 换一张
取 消