home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.parallel
- Path: sparky!uunet!gatech!hubcap!fpst
- From: engler@cs.arizona.edu (Dawson R. Engler)
- Subject: Wanted: efficient software lock
- Message-ID: <1992Dec14.133731.18997@hubcap.clemson.edu>
- Keywords: locks
- Sender: news@cs.arizona.edu
- Organization: Clemson University
- Date: 14 Dec 92 07:07:45 GMT
- Approved: parallel@hubcap.clemson.edu
- Lines: 20
-
-
- I need the algorithm for an efficient software lock that does not use
- atomic instructions (except perhaps assignment). Fairness is unnecessary:
- in the situation I need this for, ~90% of the accesses are by the same
- process, and if the accesses are by someone else, they are allowed to
- have extra overhead.
-
- If anyone can suggest such an algorithm that has worked well for them
- in practice, I would be grateful.
-
- Regards,
- Dawson
- engler@cs.arizona.edu
-
- P.S. An alternative solution would be a lock that is very effective in
- the case of two processes. Since each lock will belong to a
- specific process, there is a natural dichotomy between the owner and
- "everyone else". From this distiction, two logical processes can
- be created ("me" and "them").
-
-