-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Feb 25, 2002 at 05:07:16PM -0800, Andy Ross wrote:

>  > No, it's not. Imagine what happens when one thread is reading it
>  > while another thread is writing to it. :-)

> You missed my point.  First, the Vector class *is* threadsafe; check
> all the methods, they're synchronized.  There is no way, in Java, to
> corrupt the state of a Vector object by modifying it in multiple
> threads.

Okay okay, I'll admit that I'm not 100% (con)current on Java.

> My point was that this buys you *nothing*.  You can still write all
> the race conditions you want by assuming that the object won't be
> modified from another thread.  See my post about the nuclear bomb
> safety lock; even a perfectly threadsafe property system is
> susceptible to race conditions.

So essentially you are saying that it is impossible to completely
defend against sloppy programming and lack of documentation. Or,
to put it another way, if you make something foolproof, they just
come up with a better fool. :-)

> The point, again: *all* multithreaded code is susceptible to race
> conditions and deadlocks.  There is *no* way around this.

Obviously. But my point is that you can hide a lot of the
complexity that comes with multithreading, *if* you properly
define the interfaces, and don't stray from the path.

> Now, are you getting the point? :)

Yes. We desperately need a comprehensive FG hacker's guide to the
galaxy. :-)

- --
Regards,          "I RADIS, do you?"
=Martin=        http://www.iradis.org/

PGP:  FE87448B  DDF8 677C 9244 D119 4FE0  AE3A 37CF 3458 FE87 448B


From: Martin van Beilen <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [Flightgear-devel] New subsystem: FGEnvironment
In-Reply-To: <[EMAIL PROTECTED]>; from [EMAIL PROTECTED] on Mon, Feb 25, 2002 
at 05:07:16PM -0800
X-S-Issue: [EMAIL PROTECTED] 2002/02/27 01:34:27 
2ed0948a567b8aeaac36e3a8338e87ea
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iEYEARECAAYFAjx8KZsACgkQN880WP6HRIt/CwCfa/2C0NN+vWyjWW6/ySGccf5z
6ioAn0VfiySeXw6x1FmumRBABYrPNitL
=Qx0v
-----END PGP SIGNATURE-----

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to