Linux in General > Linux Development & Programming

Implement observer pattern across the processes

(1/1)

nmittal80:
Hi,

How can we implement observer pattern across processes?

Say there is a process 1 & process 2. Process 1 takes some action depending on the contents in file say config.txt.

If process 2 changes config.txt then the notification should go to process 1.

How can we achieve this in linux?

Is using "Signals" a good idea?

I am totally new to Linux, so any help would be appreciated.

Thanks,
Nitin

Navigation

[0] Message Index

Go to full version