Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Multithreading under windows

Author: Andrew Dados

Date: 13:10:15 12/05/00

Go up one level in this thread


On December 05, 2000 at 12:37:02, Bruce Moreland wrote:

>On December 05, 2000 at 10:28:27, Vincent Diepeveen wrote:
>
>>this is not nonsense. blocking is GARANTUEED by windows.
>>See the microsoft documents on it. they GARANTUEE blocking to
>>prevent parallel problems.
>
>Are you telling me that if I get a mouse button click message from Windows, and
>do something outrageously expensive before returning from that message, that my
>engine threads will block until I return?
>
>bruce

I don't think so, however under windows only main thread should do GUI access
(drawing, dispatching input).

This is because many functions in windows kernel determines tasks by esp of the
caller and it would be confused when called from some other, then main thread.

-Andrew-



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.