I am writing a resource manager with one prozess including two threads. One thread is responsible for the resource manager witch magages a device. The other thread should open this device an write data to it.
Is it possible to open the device within the same process??
Yes, you should be able to send to yourself, but to be generous, this design sounds very odd…
Generally this won’t work. A resource manager cannot open itself. Why not just make it a separate process or not have it be a resmgr?