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

닫힘
yannweb4 년 전을 오픈 · 2개의 코멘트
yannweb 코멘트됨, 4 년 전

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 added this to the BETA version milestone 4 년 전
yannweb added the
enhancement
label 4 년 전
yannweb added the
question
label 4 년 전
yannweb added the
_core
label 4 년 전
yannweb 코멘트됨, 4 년 전
소유자

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 4 년 전가 작업 시작
yannweb cancelled time tracking 4 년 전
yannweb self-assigned this 4 년 전
yannweb 4 년 전가 작업 시작
yannweb 작업 중단 4 년 전
1h 17min 44s
yannweb added a new dependency 4 년 전
yannweb added a new dependency 4 년 전
yannweb 사용 시간이 추가됨 4 년 전
1h
yannweb 코멘트됨, 4 년 전
소유자

closed by b3af92459e

closed by b3af92459e
로그인하여 이 대화에 참여
마일스톤 없음
No Assignees
참여자 1명
Total Time Spent: 2h 17min 44s
Yann Weber
2h 17min 44s
Due Date

No due date set.

Loading…
취소
저장
아직 콘텐츠가 없습니다.