[Linux] WiatQueues Vs Semaphores

Hi Guys,

By some recent bad luck I have been given a task to write linux drivers. :slight_smile:

I know that this not the right place to post this but this is the best list ever and I love people here so I am ready to take spanking if any :slight_smile:

So I have been reading about Linux WaitQueus and what I fail to understand is the difference between the WaitQueues and simple semaphore (used probably in mutex mode).

  • Both achieve the same thing.

  • Wait queue seem like more of an eventing mechanism.

Is there a reason one would use a wait queue and not a semaphore?

Any explanations?

Thanks

Ajitabh

RIGHT!

Thanksโ€ฆ

Nope! No spanking. Just a lock.

Entirely, completely, off topic.

No posts are allowed on the topics of baseball, football, VxWorks, cricket, furries, fashion, politics, straw bale houses, Linux, klonopin side-effects, or anything else that isnโ€™t related to Windows System Software Development.

Peter
OSR
@OSRDrivers