I did a search ... couldn't find this particular question answered.

How is thread affinity determined for non-Qt objects? What mechanism?

For example, I have an application that uses legacy code ... leveraging low-level socket library. When I create the non-Qt socket in the run method of the QThread, how does the Qt threading "know" that the socket has affinity with the child thread? Obviously it doesn't block the process on block read ... just wonder how/why?

Also, are QThreads kernel-level or library threads? It depends upon the OS and what Qt is built upon.

Thanks,
Ben