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

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

From: Cyrille Chepelov <cyrille(at)chepelov(dot)org>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [HACKERS] Threads vs Processes (was: NuSphere and PostgreSQL for
Date: 2003-09-25 18:22:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-hackers-win32
Le Thu, Sep 25, 2003, à 12:57:09PM -0400, Bruce Momjian a écrit:
> 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?

Well, for sure Borland C++ Builder has support for TLS. Gcc too

Doesn't seem specially hard to use, I guess the primary factor will be
the amount of static data currently used and how much of it should be
sent to the shared and non-shared bins.

	-- Cyrille


In response to

pgsql-hackers by date

Next:From: markwDate: 2003-09-25 18:44:19
Subject: Re: Is this a commit problem?
Previous:From: Bruno Wolff IIIDate: 2003-09-25 17:48:56
Subject: Re: pgsql procedures??

pgsql-hackers-win32 by date

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

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