Hi.
I know it is not Linux related per seh, but I couldn't find any other suitable place for this question that bothers me for quite a lot, and I couldn't find the answer online.
Suppose I want to implement a locking mechanism.
Is there a way to do it without the help of hardware?
For example, the Test-And-Set function, afaik, is implemented using hardware to allow atomicity.
Is atomicity a necessary component for a locking mechanism?
Because if it is, then I can't think of any way to implement it without the help of some designated hardware...