The below program is a simple implementation of pipe in c. In this, the child thread takes the input and the parent child reads it.
int pfds;char buf;
printf("CHILD:writing to the pipen");
printf("PARENT : reading from pipen");
Latest posts by Bikash Panda (see all)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017