[2022] in java-interest

home help back first fref pref prev next nref lref last post

Re: Object level concurrency control.

daemon@ATHENA.MIT.EDU (Larry Reu)
Fri Sep 22 00:38:34 1995

Date: Thu, 21 Sep 1995 18:21:15 -0700 (PDT)
From: Larry Reu <larryr@CyberGate.COM>
To: Leon Hurst <lahurst@maths.tcd.ie>
cc: java-interest@java.sun.com
In-Reply-To: <9509211155.aa29135@salmon.maths.tcd.ie>


On Thu, 21 Sep 1995, Leon Hurst wrote:

> Seen as Java is both multithreaded and Object Oriented I was wondering
> if there was any object level concurrency control available or in the
> works. For example can one specify a set of methods as "serialised",
> meaning that only one of these methods can be executing at a time.
> 
indeed methods (or blocks of code) can be marked "synchronized" which 
means theat method aquires a lock before executing.  Each object (i.e. 
instance of a class) has one lock and each class has a lock.  Thus static 
synchronized methods aquire the class lock non statics aquire the class 
lock. (page 19 of 11may95 lang spec).

.........later........larry
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post