Re: Running Cocoa applications from file servers
Re: Running Cocoa applications from file servers
- Subject: Re: Running Cocoa applications from file servers
- From: Michael Ash <email@hidden>
- Date: Wed, 25 Feb 2009 14:41:54 -0500
On Wed, Feb 25, 2009 at 1:21 PM, I. Savant <email@hidden> wrote:
> I was rushing off to a meeting, but I wanted to expand on this a
> bit. Most complicated applications won't be loading all their
> resources when they're launched (if they're worth a damn, that is), so
> consider what would happen if, as happened today at my place of
> employment, a wide-spread electrical problem caused all the internal
> switches to randomly go up and down for half the day.
Note that there's no need to add the qualifier "most complicated"
here. *All* applications load resources lazily, simply because OS X
uses memory-mapped executables. The binary doesn't get loaded into RAM
all at once, it gets loaded on demand. If the network dies and then
you try to access some code that either was never loaded or got
purged, game over. If the network disk is gone then the application
will segfault and crash. If the network disk is still mounted then it
will freeze until either you can convince the system to start it
working again, or until it goes away and then the app will segfault.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden