Re: thread_test.c problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: wespvp(at)syntegra(dot)com
Cc: PostgreSQL-general <pgsql-general(at)postgresql(dot)org>, joseph speigle <joe(dot)speigle(at)jklh(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: thread_test.c problems
Date: 2004-04-07 04:12:15
Message-ID: 200404070412.i374CFM24351@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

wespvp(at)syntegra(dot)com wrote:
> On 4/5/04 8:31 AM, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
>
> >>> OK, new patch applied that causes all threads to wait until the parent
> >>> checks their thread-specific pointers. I ran 1000 tests and all passed.
> >>> Hopefully it will good for you too.
> >>
> >> I'll try to give it a test tonight.
> >
> > Please grab CVS. I added sched_yield() too.
>
> Ok, I did a cvs update and reran the test. It now consistently returns
> 'YES' to all three questions. Thanks.
>
> What needs to be done to get the standard Darwin template file updated to
> enable threading?

Oh, that is a problem because other linux's show 'no' for the last two.

My plan is to have 'configure' run this program as part of its
operation, and Jan has some thread configure scripts, and this will all
be automated in 7.5 so no one will have to run the program manually.

--
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

Browse pgsql-general by date

  From Date Subject
Next Message Vinay Jain 2004-04-07 04:19:56 Re: Create Type Problem
Previous Message Tom Lane 2004-04-07 04:09:35 Re: Cursors and Transactions, why?

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-04-07 04:21:55 Re: thread_test.c problems
Previous Message Bruce Momjian 2004-04-07 04:05:09 Re: Function to kill backend