[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Simple multi-threading...
From: |
Jonathan Kinsey |
Subject: |
Re: [Bug-gnubg] Simple multi-threading... |
Date: |
Fri, 05 Jan 2007 11:41:20 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 |
Øystein Johansen wrote:
> This sounds really good! How does it work?
> What do you thread? Each candidate move? Each dice roll? Does it
thread into many threads?
I picked AnalyseGame() as it logically divides the tasks into move
records, the tasks get put in a list and then the threads (which are
user specified in number - I've used an Intel sample to guess a good
number) take things off the list and call AnalyseMove() as required.
> Which library do you use? pthreads? glib threads?
Initially I've coded the multi-threaded calls directly using the windows
API, it should be easy to convert this to pthreads (or maybe glib) -
there are only 5 or so lines of code using multi-threaded functions.
> (I remember I once tried threading in the evaluations functions and made one
> tread each dice roll in the lookahead. That failed completly.)
I did consider the evaluation functions (as it would be the ideal
solution in one sense - i.e. it would multi-thread everything in one
go), they're not great candidates for multi-threading though.
> BTW: I just got a new computer, and I would love to utilize the dual core.
> The computer is so new that I've not been able to install any build and
> development tools yet, but I sure will. Maybe I even ditch the WinXP system
> and have a pure Linux.
I'll try and check the initial code in tonight - I'll add a
USE_MULTITHREADED guard to the new code.
Jon
signature.asc
Description: OpenPGP digital signature
- [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Øystein Johansen, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading...,
Jonathan Kinsey <=
- Re: [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Christian Anthon, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Christian Anthon, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Christian Anthon, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Christian Anthon, 2007/01/05
- Re: [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/06
- Re: [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/07
- Re: [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/07
- Re: [Bug-gnubg] Simple multi-threading..., Jonathan Kinsey, 2007/01/08
- Message not available
- Re: [Bug-gnubg] Simple multi-threading..., Jim Segrave, 2007/01/08