Re: Multithreading Bundles
Re: Multithreading Bundles
- Subject: Re: Multithreading Bundles
- From: Georg Tuparev <email@hidden>
- Date: Mon, 24 Nov 2003 13:05:59 +0100
On Sunday, November 23, 2003, at 05:23 PM, Josh Ferguson wrote:
I'm curious if you could provide a little more information on this.
The
reason I'm loading it in the secondary thread is that it blocks the
main
thread for 3 or 4 seconds while the framework loads. I have a
progress bar on
the screen at that time that will freeze if that thread is blocked.
Considering that frameworks are supposed to be loaded in task space,
I'm
surprised that this would be an issue.
The problem is not the loading of a bundle in a different thread. The
problem is that when the bundle is loaded, initialization is taking
place (+load, +initialize, etc)... and this is never been (in my
experience) a thread safe procedure. As a result strange things might
happen ... and the strangeness correlates very strongly with almost
unpredictable things like the order in witch the bundles are loaded,
the weather outside etc.
So try to load the bundle as early as you can...
-- georg --
"War is God's way of teaching Americans about geography."
Ambrose Bierce, writer (1842-1914)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.