Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: To Experienced Java Programmers: strange BUG!!

Author: Bernd Nürnberger

Date: 08:37:10 05/06/04

Go up one level in this thread


On May 06, 2004 at 09:18:39, Thorsten Greiner wrote:

>On May 06, 2004 at 08:55:01, Bernd Nürnberger wrote:
>
>>Could your issue nethertheless apply in this case?  Maybe the internal
>>splitting in two 32 bit vars, operation on these, and "concanting" them
>>back to a 64 bit value are interrupted by the other thread, causing
>>the CPU registers to hold false values?  But in case your issue is a
>>problem in my case: how to fix it?
>
>Guard the access to the variable with a synchronized block.

But I have mountains of longs in nearly any function. Syncronizing
will slow down performance significantly! Isn't there another solution?

Bernd



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.