Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Portable multithreading

Author: Alejandro Dubrovsky

Date: 23:26:47 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.
>
>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?
>
>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.
>
i use pthread for the polling simplification you mentioned. It seems to work
fine, except for pthread_yield, which seems to misbehave in win98 (and maybe in
the other members of the non-NT based windows family.

Alejandro



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.