Re: thread_test.c problems

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: thread_test.c problems
Date: 2004-04-05 16:13:45
Message-ID: 87lllaierq.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:

> wespvp(at)syntegra(dot)com wrote:
> > On 4/4/04 11:43 PM, "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.

Make sure to test this on linux 2.6. They changed sched_yield() to not cause
context switches in a lot of cases where it did previously. You might need a
usleep() there instead or in addition.

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message C G 2004-04-05 16:20:25 Storing jpgs
Previous Message wespvp 2004-04-05 15:23:50 Re: thread_test.c problems

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-04-05 16:20:28 Re: Socket communication for contrib
Previous Message Bob.Henkel 2004-04-05 16:00:56 Re: Socket communication for contrib