Re: Thread context switch
Re: Thread context switch
- Subject: Re: Thread context switch
- From: Cameron Hayne <email@hidden>
- Date: Sun, 20 Nov 2005 18:09:37 -0500
On 20-Nov-05, at 4:27 PM, Martin Tauber wrote:
But after a view thumbnails beeing shown, the first thread hangs
until the second thread has loaded all the thumbnails requested. It
seams that the second thread does not pass control to the first
thread until the last thumbnail is loaded. This confuses me because
my expectation was that as soon as the second thread does an I/O
request (on which it then would have to wait) it would pass control
back to the first thread.
Any ideas why the second thread does not switch back control? Any
Ideas on how I can force it to switch control?
Threads don't switch control between themselves.
The OS switches between threads according to its scheduling algorithms.
If a thread doesn't seem to be getting CPU time, it is usually
because it is blocked waiting for some resource.
But maybe what you are seeing is merely a (lack of) redraw problem?
You should use "Thread Viewer" to examine your threads.
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden