> Driver handling multiple opens is a good idea. I get different
handles for different Apps that issue CREATE on the device. OS will
take care of reference counting. In the other case where I share a
handle between applications, I will have to maintain reference count
on the handle and close the handle when the last app terminates.
Thats a over-head, I see.
I don’t think that is correct. I believe that under all methods
whereby one process can share a handle with another process the OS
will increase the reference count appropriately and all processes that
share the handle are required to close it.
Rob