Locking from primitives
- From: "Xllo" <xllo@xxxxxxxx>
- Date: Sat, 6 Jan 2007 20:06:34 +0530
Am a Beginner, so excuse if something is silly.
A friend was asked a question in an interview.
Given atomic increment & decrement operations
how would one implement locking functions?
I tried various ways, but can't arrive at a working
solution.
Is this problem solvable? Are there any extra
operations one would need?
If not, can some one give me a solution or hints
about the direction in which I can attack the problem.
.
- Follow-Ups:
- Re: Locking from primitives
- From: CBFalconer
- Re: Locking from primitives
- From: Joe Seigh
- Re: Locking from primitives
- From: Ben Bacarisse
- Re: Locking from primitives
- Prev by Date: Re: Grid Point
- Next by Date: Re: Locking from primitives
- Previous by thread: Free ad-space for programmers
- Next by thread: Re: Locking from primitives
- Index(es):
Relevant Pages
|