Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: good MP idea?

Author: Danniel Corbit

Date: 13:39:00 07/30/98

Go up one level in this thread


On July 30, 1998 at 14:46:46, Tom Kerrigan wrote:

>I was just thinking, what if a chess engine was contained in a C++ class?
>It would have a function that starts a little loop that waits for work. When it
>gets work, it starts searching.
>To use it, you make a thread out of this function.
>Then, when you want to write an MP program, you make several copies of this
>class and several threads running the respective loops.
>The threads, being contained in the classes, don't bother each other, except to
>request work.
>Comments? Suggestions?
I think it is a very good idea, but I might scale it down a bit.  For instance,
make the class be a move generator.  Make another class that is a position
evaluator.  The hardest part will be to write the coordinator so that no work is
duplicated and so that resultsare properly synchronized.



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.