Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Portable multithreading

Author: Dann Corbit

Date: 11:41:02 04/10/02

Go up one level in this thread


On April 10, 2002 at 11:58:36, Russell Reagan wrote:

>I'd like to write my program in portable C, so that I can test it out on my
>Windows machine as well as Unix/Linux. I've heard people suggest pthreads and I
>believe ACE is another that comes to mind.

Ace is very good, but it is a huge system and takes some learning.  The
threading part is a microscopic fraction of the whole.  I have done a port of
Pthreads to NT:
ftp://cap.connx.com/pub/amy/pthreads.ZIP

>What is the best approach to implementing threads into a program in a portable
>way? Are any of the portable thread libraries any better than the rest?

This one looks pretty good:
http://www.imatix.com/html/smt/index.htm

>Initially I'm just using a seperate thread for input to simplify polling for
>input from console and winboard, but I would eventually (a long way off) like to
>implement some multiprocessor support, so I will need a poartbable threading
>method eventually, and I might as well implement it from the beginning.
>
>All advice is welcomed.
>
>Russell



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.