在Linux , 這是最基本的!pipe 是用在interprocess communication ... like daisy chain ... the result of one process passes onto to a new one directly ... fork is different in that it creates a child process like the parent ... thus forking out. 你在轉行嗎? 我之前教過Linux Users course + System administration course.
solved
具体问题我没有发,请问您会吗?
应该是的吧
在Linux , 這是最基本的!pipe 是用在interprocess communication ... like daisy chain ... the result of one process passes onto to a new one directly ...
fork is different in that it creates a child process like the parent ... thus forking out.
你在轉行嗎? 我之前教過Linux Users course + System administration course.
要求是建立两个child process,然后让两个进程用pipe单向链接,第一个child的output是第二个child的input,感觉我们班没几个人会的,问老师,他说去google
你是在寫C language or Bash?
Depend on what you do ... what you said it’s doable ... just make sure timing is ok ... are you doing a thread ?
好像不是thread吧,就是一个child是ls,然后另一个child是nl,他们两个要用pipe链接,ls的output要是nl那个的input,是不是shell,我不太清楚
你用什麼language 寫了?C
嗯嗯,老师要求用c
你懂C嗎?You see C :)
你是take course 嗎?creating processes 等等,很接近system kernel ...
我写了一个程序,可是compile以后没有显示nl,不知道为什么
你成功create ls process 嗎?你是否在implementing
ls | nl command ?
我解决了,谢谢你
怎麼你跑去學電腦了?