Ameyj
Ameyj

Reputation: 617

interprocess communication in linux design

I am running linux . I have two processes lets say side-process and main-process. side-process interacts with driver and gets SIGIO from driver and populates information from the driver.

Process B needs to get information from process side-process whenever side-process gets SIGIO and side-process then generates events and decides what to do with the event. main-process is kind of central process and it interacts with other dozens of processes. How should be the communication between side-process and main-process? how to notify main-process When I get SIGIO at side-process.

Upvotes: 0

Views: 101

Answers (1)

Sobrique
Sobrique

Reputation: 53478

This question is very broad really - so much so that there's a whole document about how to ipc in perl - perlipc - for sustained IO I would suggest considering a pipe, or actually possible looking at using threads and a shared memory model.

Upvotes: 1

Related Questions