Hello,
A multi-threaded resmgr seems to serialize calls to devctl. Is this the
designed behavior? Why?
Thanks,
-david
Hello,
A multi-threaded resmgr seems to serialize calls to devctl. Is this the
designed behavior? Why?
Thanks,
-david
David Alessio <david.alessio@hsa.hitachi.com> wrote:
Hello,
A multi-threaded resmgr seems to serialize calls to devctl. Is this the
designed behavior? Why?
In a multi-threaded resource manager, locking is done to prevent
update collisions. The locking is done at the ifunc_attr_t level,
that is at the device level (i.e. per file). A resource manager
handling only one device will NOT benefit from being multi-threaded.
If all the devctls are operating on the same device, they will
be serialized – as will reads, writes, and other operations on
the same device (file).
Operations, including devctl, on different devices can be
parallelized.
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.