我有一个创建作业队列的应用程序,然后多个线程执行作业。通过执行它们,我的意思是它们使用作业字符串调用 system() 。
问题是标准输出的输出看起来像问题底部的输出。我希望每个应用程序运行分开,所以输出看起来像:
弗拉克 1.2.1 ... ... ... 弗拉克 1.2.1 ... ... ... 等等
我正在使用我无法控制的程序,因此无法将 IO 包装在互斥锁中。
如何使输出看起来像上面那样?
ffllaacc 11..22..11,, CCooppyyrrigghhtt ((CC)) 2000,2001,2002, 2003,220004,2 005,0200,0260,0210,0270 0 2J,o2s0h0 3C,o2a004,2005,2l0s0o6n, 007f l aJco scho mCeosa lwsiotnh AfBl OcL UcfTolEmaLecYs 1Nw.Oi2t .hW1 A,AR BRCSAoONpLTyUYrT.iE gL hYTt h Ni(OsC )W i AsR2 R0fA0rN0eT,eY2 .0s 0o 1fT,th2wi0as0r 2ei,,s2 0af0nr3de, e2y 0os0uo4 f,at 2rw0ea0 e,,2 0wa0en6ld,c 2oy0mo0eu7 ta or J eor hd iCswotearllicsbooumnte tiotf lruaencdd iecsrot mrceiesbr utwtaieit nhi tcA oBunSndOdiLetUriT oEcnLes 年。t Na OiT nyW pacero Rn`AdfNilTtaYic.o' n sfT.oh ri sTd yeiptsea if`lrfsel .ea s 'f tfwor adreet,a iandl sy.ou 一种 e 欢迎在特定条件下重新分发。输入“flac”以获取详细信息。