Re: Sharing TFile among 2 processes

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Mon Jun 21 1999 - 18:25:47 MEST


>
> 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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET