Computer Chess Club Archives


Search

Terms

Messages

Subject: Listening to I/O using a separate thread?

Author: Steve Maughan

Date: 18:15:48 02/04/03


I'm considering re-writing Monarch in 'C' (currently Delphi). One quick question
I have is - do you need a separate thread to 'listen' for commands when writing
a 'C' winboard program?

I'm not too familar with 'C' (another reason to convert is to learn C) - but
looking at TSCP I cannot see a separate thread - the same is true for Sjeng.
Monarch uses a separate thread so I assumed that I would need one - now I'm
thinking maybe I don't. Can someone clarify this? How can the engine read the
i/o when it is pondering if there isn't another thread?

Also has anyone any pointers to information about creating a separate thread in
C and reading the StdIO info - hopefully in a readable / understandable format.

Thanks,

Steve Maughan



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.