Liste des Groupes | Revenir à cl c++ |
Everything has to be polled at some level except hardware interrupt based
code.
If the queue is empty CPU-time is usually handed voluntary to
another thread - not with a lock-free-queue.
I think you missed the point - locks are just a kernel construct. Their state still has to be polled by the kernel.No, their state is maintained in userspace and the kernel is only there
Unless the locking mechanism is implemented in hardware then softwareThe fast-path is implemented in hardware through the support of atomics.
has to manage it whether in user space or kernel space.
Les messages affichés proviennent d'usenet.