Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 13094 invoked from network); 29 Nov 2005 15:29:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Nov 2005 15:29:39 -0000 Received: (qmail 16876 invoked by uid 500); 29 Nov 2005 15:29:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 16841 invoked by uid 500); 29 Nov 2005 15:29:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 16822 invoked by uid 99); 29 Nov 2005 15:29:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 07:29:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.63.108.51] (HELO usbb-lacimss1.unisys.com) (192.63.108.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2005 07:30:35 -0800 Received: from USBB-LACGW3.na.uis.unisys.com ([129.224.98.43]) by usbb-lacimss1 with InterScan Messaging Security Suite; Tue, 29 Nov 2005 10:44:11 -0500 Received: from USBB-LACGW3.na.uis.unisys.com ([129.224.98.44]) by USBB-LACGW3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Nov 2005 10:28:43 -0500 Received: from USRV-EXCH1.na.uis.unisys.com ([129.225.81.6]) by USBB-LACGW3.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Nov 2005 10:28:42 -0500 Received: from USRV-EXCH4.na.uis.unisys.com ([192.61.245.232]) by USRV-EXCH1.na.uis.unisys.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Nov 2005 09:28:42 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Java databases as alternative to MySQL on OS X Server? (OT) Date: Tue, 29 Nov 2005 09:28:40 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Java databases as alternative to MySQL on OS X Server? (OT) Thread-Index: AcX0w4DUXrzV7KWKS++TH3RZVfyingAM+xsg From: "Caldarale, Charles R" To: "Tomcat Users List" X-OriginalArrivalTime: 29 Nov 2005 15:28:42.0235 (UTC) FILETIME=[9451CCB0:01C5F4F9] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > From: Oded Arbel [mailto:oded@m-wise.com]=20 > Subject: Re: Java databases as alternative to MySQL on OS X=20 > Server? (OT) >=20 > inter-thread communication in java is done through shared=20 > memory - shared variables, but the Java memory sharing model=20 > doesn't really share memory, Instead it uses thread local=20 > storage to store copies of shared variables and when you=20 > cross into or out of a synchronized block, the contents of=20 > the variables are copied. That's one of the most bizarre and blatantly wrong descriptions of the Java memory model that I've ever read. All Java objects reside in the Java heap, which is shared across all threads of the JVM process and directly referenceable by all. Local variables for a Java method exist in each thread's Java stack, which is normally not shared across threads other than for garbage collection operations. Entering a synchronized block in a HotSpot-based JVM normally does not require any context switching, since the lock on an object is established via the platform's compare-and-exchange instruction; only if a conflict exists are kernel services required to suspend the conflicting thread. (This is also true of the JRockit and IBM JVMs, as well as several others.) No copying of local variable is ever performed; on some OS implementations, parameters are copied when calling a kernel service that requires a context switch but that occurs within the OS, not the JVM. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org