[2119] in java-interest

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

Re: Object level concurrency control.

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 25 21:36:52 1995

Date: Mon, 25 Sep 1995 14:31:46 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: Leon Hurst <lahurst@maths.tcd.ie>
Cc: java-interest@java.Eng.Sun.COM



Hi Leon,

> 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.

That is essentially what "synchronized" does.

> The reason I ask is wrt to object migration. In a multithreaded
> environment it might not be a good idea to migrate an object while one
> of its methods is executing! Hence one might might be able to make the
> its migrate method a member of this group and so avoid the possibility
> of migrating as one of its (public) methods is being executed by a
> different thread.

We don't support any form of object migration or persitification other
than what you can hack yourself.

Have fun,

	Arthur van Hoff

-
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