ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A question about thread-architecture.
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Mark Pearce



Joined: 12 Jan 2012
Posts: 61
Location: London, England

PostPost subject: Re: A question about thread-architecture.    Posted: Fri Apr 13, 2012 12:38 am Reply to topic Reply with quote

tpetzke wrote:
I tried both approaches and ended up with a one similar to yours. I have a dedicated thread whose only task is to wait for new input.

+1 for this approach, which I use in my (C#) engine. The BackgroundWorker type in the .NET Framework library makes this type of multi-threading very easy, together with the ability to do cross-thread communication of search events and controlled cancellation of the search thread.
_________________
Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Chess programmers combine theory and practice: Nothing works and they don't know why.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Subject Author Date/Time
A question about thread-architecture. Fermin Serrano Thu Apr 12, 2012 3:47 pm
      Re: A question about thread-architecture. Thomas Petzke Thu Apr 12, 2012 3:58 pm
            Re: A question about thread-architecture. Mark Pearce Fri Apr 13, 2012 12:38 am
      Re: A question about thread-architecture. Martin Sedlak Thu Apr 12, 2012 4:08 pm
            Re: A question about thread-architecture. Robert Hyatt Thu Apr 12, 2012 7:19 pm
      Re: A question about thread-architecture. Robert Hyatt Thu Apr 12, 2012 7:17 pm
      Re: A question about thread-architecture. Richard Allbert Fri Apr 13, 2012 5:52 am
      Re: A question about thread-architecture. Vincent Diepeveen Fri Apr 13, 2012 11:42 am
            Re: A question about thread-architecture. Martin Sedlak Fri Apr 13, 2012 12:04 pm
                  Re: A question about thread-architecture. Sven Schüle Fri Apr 13, 2012 3:24 pm
                        Re: A question about thread-architecture. Robert Hyatt Sat Apr 14, 2012 4:21 am
                              Re: A question about thread-architecture. Marco Costalba Sat Apr 14, 2012 6:49 am
                                    Re: A question about thread-architecture. Vincent Diepeveen Sun Apr 15, 2012 1:13 am
                                          Re: A question about thread-architecture. Marco Costalba Sun Apr 15, 2012 9:56 am
                                                Re: A question about thread-architecture. Robert Hyatt Mon Apr 16, 2012 7:26 pm
                        Re: A question about thread-architecture. Vincent Diepeveen Sun Apr 15, 2012 12:29 am
                              Re: A question about thread-architecture. Sven Schüle Tue Apr 17, 2012 3:34 pm
                                    Re: A question about thread-architecture. Robert Hyatt Tue Apr 17, 2012 4:21 pm
                                          Re: A question about thread-architecture. Vincent Diepeveen Wed Apr 18, 2012 12:06 am
                                                Re: A question about thread-architecture. Sven Schüle Wed Apr 18, 2012 9:27 am
                  Re: A question about thread-architecture. Vincent Diepeveen Sun Apr 15, 2012 12:27 am
            Re: A question about thread-architecture. Robert Hyatt Sat Apr 14, 2012 4:18 am
                  Re: A question about thread-architecture. Vincent Diepeveen Sun Apr 15, 2012 12:32 am
                        Re: A question about thread-architecture. Robert Hyatt Tue Apr 17, 2012 3:01 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads