Computer Chess Club Archives




Subject: Re: POSIX threads

Author: Lance Perkins

Date: 02:02:54 07/05/05

Go up one level in this thread

Not true.

Testing a multi-threaded app on a single-cpu machine is bogus. Its very easy to
write a multi-threaded app. Its a no brianer. But to be sure that it actually
works on a multi-cpu machine, you have to test it on one.

On a single-cpu machine, the threads never run in parallel. A shared resource
will never be accessed simultaneously.

I have tons of horror stories about this from newbie programmers.

On July 05, 2005 at 03:56:29, Steven Edwards wrote:

>On July 05, 2005 at 03:31:42, Tord Romstad wrote:
>>On July 04, 2005 at 23:36:39, Juan Pablo Naar C. wrote:
>>>Is coding for SMP really hard?
>>It is, especially when you don't have a dual CPU computer.
>>There are still very few of us who have one.  Duals are still
>>too big, noisy and expensive for the average customer.
>>This will, of course, change in the future (probably in the
>>near future).  When duals become more common, I am
>>sure the number of parallell chess programs wil increase
>If the host and target platforms are POSIX compliant (e.g., Mac OS/X and Linux),
>then adherence to the POSIX thread model specification is relatively simple and
>so an SMP-aware prgram can be developed and tested on a single CPU machine.
>This is part of Symbolic's development method.

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.