|
|
|
|
|
by liblfds
3676 days ago
|
|
I may be wrong, but I think an algorithm could only be considered in terms of locking or lock-free if multiple threads were through that algorithm performing work on the same data at the same time (and so potentially running into each other, in ways which would break the work being done). I've seen server code like that - all the time of course - but the only algorithm I can think of which has that property is a PRNG, and that can normally be implemented on a per-thread basis, each thread holding its own single-threaded PRNG. This probably reflects my lack of work with algorthims. Could you give an example? |
|
http://people.csail.mit.edu/shanir/publications/Lock_Free.pd...