Author: Andrew Dados
Date: 17:24:53 12/18/01
Go up one level in this thread
On December 18, 2001 at 10:36:56, Steve Maughan wrote: >Andrew, > >>In mine one thread is always blocked on reading input. If there is a line read >>all it does is store it and increment some flag. Second thread is solely >>responsible for output and dispatching input. Third does the search. > >Thanks for the input. Why do you need a separate thread for output? Could you >expand a little on this second thread? > >Thanks, > >Steve Originally I wrote my own GUI so I needed that thread for dispatching GUI messages - search had always its own thread. So this 'second thread' was always the 'main' one here. Btw in general wb engine in windows does not need to be a console app - it may have its own gui (Bringer works like that). Next thing is debugging - even if my search thread 'hangs' I can always access all variables from that other thread, and display/dump some post mortem info. In particular I can even restart the search with some debug flags on... -Andrew-
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.