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

Geschlossen
vor 4 Jahren von yannweb geöffnet · 2 Kommentare
yannweb hat vor 4 Jahren kommentiert

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 hat diesen Issue vor 4 Jahren zum BETA version Meilenstein hinzugefügt
yannweb hat das
enhancement
-Label vor 4 Jahren hinzugefügt
yannweb hat das
question
-Label vor 4 Jahren hinzugefügt
yannweb hat das
_core
-Label vor 4 Jahren hinzugefügt
yannweb hat vor 4 Jahren kommentiert
Besitzer

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 hat die Zeiterfassung vor 4 Jahren gestartet
yannweb hat die Zeiterfassung vor 4 Jahren abgebrochen
yannweb hat sich das Issue vor 4 Jahren selbst zugewiesen
yannweb hat die Zeiterfassung vor 4 Jahren gestartet
yannweb hat die Zeiterfassung vor 4 Jahren angehalten
1h 17min 44s
yannweb hat vor 4 Jahren eine neue Abhängigkeit hinzugefügt
yannweb hat vor 4 Jahren eine neue Abhängigkeit hinzugefügt
yannweb hat vor 4 Jahren gearbeitete Zeit hinzugefügt
1h
yannweb hat vor 4 Jahren kommentiert
Besitzer

closed by b3af92459e

closed by b3af92459e
yannweb hat vor 4 Jahren geschlossen
Anmelden, um an der Diskussion teilzunehmen.
Kein Meilenstein
Niemand zuständig
1 Beteiligte
Aufgewendete Zeit: 2h 17min 44s
Yann Weber
2h 17min 44s
Fällig am

Kein Fälligkeitsdatum gesetzt.

Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.