See Beware Spinlocks in User Space for Tsai's summary.
If you find that interesting, I strongly recommend also reading the original article (Measuring Mutexes, Spinlocks and how Bad the Linux Scheduler Really is) and the discussion thread (on Real World Technologies forum). Although there is a bit of trolling, the discussion has a very high signal-to-noise ratio, including some very good points by Linus Torvalds about why it is incredibly difficult to roll your own locking primitives and not screw it up.
No comments:
Post a Comment