Thread-safe queueing?

From: Tim Holloway <mtsinc(at)southeast(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Thread-safe queueing?
Date: 1999-11-13 05:04:00
Message-ID: 382CF140.CBC119C9@southeast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I need to create a cross-process producer/consumer data queue (e.g. singly-linked list).

That is - Processes A, B, and C add nodes to a controlled list and process D removes them.
Not sure if the creation of the nodes would be best done by the producers or consumers,
but destruction would have to be done by the consumer, as the producers don't wait for
processing. For optimal results, the consumer process should sleep until item(s) are added
to its queue.

Query: within the existing backend framework, what's the best way to accomplish this?

Thanks,

Tim Holloway

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-11-13 07:53:09 Re: [HACKERS] Backend build fails in current
Previous Message Tom Lane 1999-11-13 04:30:55 Re: [HACKERS] Slow - grindingly slow - query