#24 Pool_handling process & collection child IPC ( #20 #22 )

Fechado
aberto por yannweb 4 anos atrás · 2 comentários

Two solutions :

  1. if no other data than a worker counter a simple pipe with Pool_handling sending the counter when it changes

  2. if more data to be shared/inspected by collection child shared memory seems to be the solution

Two solutions : 1. if no other data than a worker counter a simple pipe with Pool_handling sending the counter when it changes 2. if more data to be shared/inspected by collection child shared memory seems to be the solution
yannweb adicionou esta issue para o marco BETA version 4 anos atrás
yannweb adicionou a etiqueta
enhancement
4 anos atrás
yannweb adicionou a etiqueta
question
4 anos atrás
yannweb adicionou a etiqueta
_core
4 anos atrás
yannweb comentou 4 anos atrás
Proprietário

The shared memory solution is the more extensible one. But it implies synchronization mechanism. The pool handling proc can update shared memory at each loop, and the collection process can read them using a POSIX timer.

An elegant one should have been to make collection child to SIGSTOP the pool handler pro, to read the data and then, to SIGCONT the pool handler proc. But in this case the pool handler loop will have to deal with EINTR failures….

A simplest solution is to use a semaphore and locking the data when accessing them.

The shared memory solution is the more extensible one. But it implies synchronization mechanism. The pool handling proc can update shared memory at each loop, and the collection process can read them using a POSIX timer. An elegant one should have been to make collection child to SIGSTOP the pool handler pro, to read the data and then, to SIGCONT the pool handler proc. But in this case the pool handler loop will have to deal with EINTR failures.... A simplest solution is to use a semaphore and locking the data when accessing them.
yannweb começou a trabalhar 4 anos atrás
yannweb cancelou contador de tempo 4 anos atrás
yannweb se auto atribuiu para esta issue 4 anos atrás
yannweb começou a trabalhar 4 anos atrás
yannweb parou de trabalhar 4 anos atrás
1h 17min 44s
yannweb adicionou uma nova dependência 4 anos atrás
yannweb adicionou uma nova dependência 4 anos atrás
yannweb adicionou tempo gasto 4 anos atrás
1h
yannweb comentou 4 anos atrás
Proprietário

closed by b3af92459e

closed by b3af92459e
Acesse para participar desta conversação.
Sem marco
Sem responsável
1 participante(s)
Tempo total gasto: 2h 17min 44s
Yann Weber
2h 17min 44s
Data limite

Data limite não informada.

Carregando…
Cancelar
Salvar
Ainda não há conteúdo.