[Prev][Next][Index][Thread]

# Re: Mutual Exclusion

- Date: Wed, 8 Nov 1995 04:18:24 PST
- From:
- Cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <v01530501acc5eeec9849@[130.157.27.233]>

    On Tue, 7 Nov 1995, CJ Holmes wrote:

    > I have a financial-flow simulation where hundreds of robotic "consumers"
    > are engaging in various transactions.  I suspect I'm getting into trouble
    > when I check an account to see if it has the required sum of currency
    > withing, and then subtract from it (in the case of a debit).  What if
    > another task modifies the account between those two statements?  Is there a
    > way I can "lock" the variable in question?

    Say what?  Are you writing to the wrong mailing list?  If I am not as
    confused as I think I am, try adding a second variable that tells the 2
    statements not to access the 1st.

    - Kipp

References:

- Mutual Exclusion

- From: cj@netdreams.com (CJ Holmes)

- Prev: Mutual Exclusion
- Next: Re: Mutual Exclusion
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index