實(shí)現(xiàn)進(jìn)程的管道通信。用系統(tǒng)調(diào)用pipe( )建立一管道,二個(gè)子進(jìn)程P1和P2分別向管道各寫一句話:
Child 1 is sending a message!
Child 2 is sending a message!
父進(jìn)程從管道中讀出二個(gè)來自子進(jìn)程的信息并顯示(要求先接收P1,后P2)。
標(biāo)簽:
pipe
進(jìn)程
系統(tǒng)調(diào)用
通信
上傳時(shí)間:
2013-12-20
上傳用戶:黑漆漆