Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Separate Thread or plain Loop??

Author: Steve Maughan

Date: 07:34:28 12/18/01

Go up one level in this thread


Ralf,

>This is what I would recommend. Sure, there will be a learning curve,
>but you will learn something really useful. The multithreaded approach
>will give a nicer program structure.

Thanks for the input.  Apart from structure are there any other advantages to
using a threaded method?  What will be the affect on speed?

As regards the implementation of the thread I can see that all of my events
triggered by the engine will need to be syncronized (e.g. OnNextPly) but do I
need to do anything special (syncronize?) with methods called by the interface
e.g. when the opponent makes a move by calling PlayMove()

Thanks,

Steve



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.