Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Approaches to threading

Author: Eric Oldre

Date: 06:35:12 06/16/04

Go up one level in this thread


On June 15, 2004 at 18:19:59, Anthony Cozzie wrote:

>
>My advice: just poll every so often.  Threaded code is _tough_ to debug.  I've
>had 4 different IO thread implementations in Zappa to date.  I'm 99% sure I have
>it down now, but it really wasn't worth it.  Humans are simply bad at parallel
>programming.
>
>anthony

Anthony, thanks for the input, you are certainly making me think twice about
which way to proceed. I think i'll probably go the threaded route to start.
Since that is what i used in the VB.NET version of my engine. (but only because
i wasn't smart enough to figure out how to poll). But if things get tough i may
switch to polling.

Also, do you know if there is any performance drain on the "thinking" thread if
you have 2 threads, but the other is only waiting for input? It's one of those
things I wouldn't want to find out after months of work. I always just assumed
most of the better engines used the threading technique, but i could be wrong.

Eric



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.