| От | Tim Holloway |
|---|---|
| Тема | Thread-safe queueing? |
| Дата | |
| Msg-id | 382CF140.CBC119C9@southeast.net обсуждение исходный текст |
| Ответы |
Re: [HACKERS] Thread-safe queueing?
|
| Список | 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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера