How i can come to know that data is available at receiving end of fifo . Is there any way to know this asynchronously other than blocked reading or continuous polling.
situation is such ( presenting in abstract manner): In main thread, an other member-thread is . In this member-thread , i open a fifo for non bloced reading. This fifo will receve values from some other process. And i want to pass these values to main thread.
2 issues are here:
1. How i will come to know some-data is available in fifo. Currently i am going for periodic reading?
2. How to inform this to main thread.
here i know ,a lot of things are fishy. I am looking for guidance how to make that well.