Can I share the FD across the thread of the same process. Is there any specific option which I need to give while opening the device.
I am having the following problem,
I have one main process, in which I spawn two thread. Now I open a file in the main process, and I want to read from one thread and write from other thread. By doing so, I was getting the error, as bad file descriptors in the write thread.
Any idea in this regards??