Lots of concurrency
Ken Kahn
kenkahn at toontalk.com
Fri Oct 26 18:12:56 UTC 2001
Stephen Pair wrote:
Except when you want to handle two withdrawals from the same account
happening concurrently. You either need a transaction, or you need to
fake concurrency (using a critical section for example).
------------------------------------
Or you move to a computation model in which there is a one-to-one mapping of
objects and threads. Then you can let any number of withdrawal messages be
sent simultaneously. The receiving object is single-threaded and deals with
the incoming queued messages one at a time. No need for transacations or
critical sections. And none of the deadlock dangers that come from critical
sections.
Best,
-ken kahn ( www.toontalk.com )
More information about the Squeak-dev
mailing list
|