Originally posted by gigaplex
View Post
There is a handful of people who know enough about the Linux or Windows kernel scheduler and locking who could possible do a spinlock in userspace and set everything right system wide that it behaves correctly.
You want to read it as saying the person is stupid. Its not saying that its saying that you have to accept the likelihood you know what you are doing is nil and that you will be needing to ask one of the handful of people for advice if you are doing it right or wrong. Linus even goes on to state on usermode spin locks and other locking those people have even got it wrong.
This is not being stupid. Locking is insanely complex thing to get exactly right for the usage case and insanely simple to get completely wrong.
Comment