Author: Robert Hyatt
Date: 14:08:33 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? > >Cheers, >Tom that's the trivial part. There are *many* more parts needed that are more difficult to develop... ie creating processes in posix threads takes 3 lines of code... getting them to do something useful in a parallel search will take a thousand lines or more...
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.