Computer Chess Club Archives


Search

Terms

Messages

Subject: good MP idea?

Author: Tom Kerrigan

Date: 11:46:46 07/30/98


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



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.