Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: ping/pong implementation in crafty

Author: Dann Corbit

Date: 11:07:00 09/11/02

Go up one level in this thread


On September 11, 2002 at 08:34:25, Andreas Guettinger wrote:

>On September 10, 2002 at 15:48:33, Dann Corbit wrote:
>
>>On September 10, 2002 at 15:34:05, Steffen Jakob wrote:
>>
>>>The xboard protocol spec says:
>>>
>>>"ping N" ... "if you receive a ping while pondering, you should reply
>>>immediately and continue pondering."
>>>
>>>Crafty doesn't do this correctly. If you send "ping N" to crafty while it is
>>>pondering it delays its response until a move was made.
>>
>>Probably, the best solution is to have a separate, synchronous thread for I/O
>>with Winboard.  Some commands could simply be put onto a FIFO queue and others
>>could get immediate reaction (like PING).
>>
>>It would also be nice to have two different 'quit' commands.  Perhaps 'quit' to
>>exit instantly, and 'exit' to quit after all pending commands have completed.
>
>Two separate threads would also solve the pondering problem. How do I make two
>separate threads?

Depends on your OS.
There are implementations of POSIX threads about that are fairly portable.
The ACE project has threading.




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.