Re: Threads vs Processes (was: NuSphere and PostgreSQL for - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Threads vs Processes (was: NuSphere and PostgreSQL for
Date
Msg-id 200309251657.h8PGv9317566@candle.pha.pa.us
Whole thread Raw
In response to Re: Threads vs Processes (was: NuSphere and PostgreSQL for windows)  ("Keith Bottner" <kbottner@comcast.net>)
Responses Re: Threads vs Processes (was: NuSphere and PostgreSQL for windows)
List pgsql-hackers
Keith Bottner wrote:
> Typically variables that you want to be per-thread are stored in what
> Microsoft calls Thread Local Storage (TLS). Variables that you want shared
> you can just treat as globals and statics with the appropriate threading
> synchronization primitives. With Windows 2000 and later you have up to 1088
> TLS locations that you can use, of course these can be pointers to memory
> which can store whatever you want.

Goes GCC on Windows support TLS, or only Microsoft compilers?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers by date:

Previous
From: Zhen Yang
Date:
Subject: Re: Question on adding new indexes to Postgresql
Next
From: markw@osdl.org
Date:
Subject: Re: Is this a commit problem?