Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: And now something completely different: Multithreading

Author: Tony Werten

Date: 00:05:03 12/03/03

Go up one level in this thread


On December 02, 2003 at 04:19:24, Gian-Carlo Pascutto wrote:

>On December 01, 2003 at 02:41:28, Tony Werten wrote:
>
>>When my masterthread is spinning, waiting for results from it's workers >threads, how do I keep it from burning CPU time ?
>
>Turn it into a worker thread.

Brilliant !

And then not having a masterthread hand out moves, but have the worker threads
pick moves themselves from "some global structure" ?

And then have only the "master thread" return a score in the search (upwards
that is) and have the worker just "disconnect" and reconnect at another movelist
in the global structure ?

I think I'm starting to see the picture now.

A "master" thread filling an array index by depth wich contains all the moves
from that depth and a flag SHAREABLE (or not). Then the workers pick moves (
preferably as high as possible) and  post result ( if important)

Tony

>
>--
>GCP



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.