Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 344 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 344 Bytes

communicate_with_pipes

Main process create a child process and communicates with its child over pipes. Main process accepts command line arguments and passes each argument its child. Then child process reverses message and send back its parent.

build

gcc two-way-communication.c -lpthread -o outputName

run

./outputName arg1 arg2 ...