From: Daniel A. S. <st...@ic...> - 2005-05-19 12:20:41
|
On 15/05/2005, at 19:34, Revar Desmera wrote: > How would you handle removing AppNames for processes that were > killed/crashed after they replied to the registry notification, > though? with the pull model described, each time you to access the registry you need to send out a (com.tcltk.wish.registry;NULL) notification again and wait for all replies (this could be too inefficient) if only checking for aliveness of a one AppName, just send a (com.tcltk.wish.registry;RemoteAppName), that way only that process gets the notification and responds of course killed remote apps is a problem with shared mem implementation as well, note how the X11 send implementation also verifies that its registry entries are still valid before returning them IIRC it is possible to get process death notification via mach ports, but for this to work every wish in the registry would need to establish a mach port with every other wish, which would be resource intensive. Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |