Re: Sharing TFile among 2 processes

Valeri Fine (fine@bnl.gov)
Mon, 21 Jun 1999 12:25:47 -0400


>
> I have two processes P1 and P2 sharing a same
> TFile: P1 regularely updates it
> and P2 reads it when it is updated.
>
> How can P2 know that P1 has updated the TFile?
>

Windows NT system notifies the process by sending a special message
when some file has been changed. The process may provide some action in
turn.
( See: FindFirstChangeNotification / FindNextChangeNotification WIN32 API )
I guess there is an UNIX equivalent as well otherwise one has to watch
things him/herself,
for example via ROOT message mechanism.

Valery