Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Threads vs Processes (was: NuSphere and PostgreSQL for

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Keith Bottner <kbottner(at)comcast(dot)net>
Cc: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"'Claudio Natoli'" <claudio(dot)natoli(at)memetrics(dot)com>,"'Robert Treat'" <xzilla(at)users(dot)sourceforge(dot)net>,pgsql-hackers(at)postgresql(dot)org, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [HACKERS] Threads vs Processes (was: NuSphere and PostgreSQL for
Date: 2003-09-25 16:57:09
Message-ID: 200309251657.h8PGv9317566@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: markwDate: 2003-09-25 17:00:02
Subject: Re: Is this a commit problem?
Previous:From: Zhen YangDate: 2003-09-25 16:55:48
Subject: Re: Question on adding new indexes to Postgresql

pgsql-hackers-win32 by date

Next:From: Tom LaneDate: 2003-09-25 17:03:02
Subject: Re: [HACKERS] Threads vs Processes
Previous:From: Keith BottnerDate: 2003-09-25 16:50:24
Subject: Re: [HACKERS] Threads vs Processes (was: NuSphere and PostgreSQL for windows)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group