• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Thread context switch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Thread context switch (From: Martin Tauber <email@hidden>)

  • Prev by Date: Re: Modal dialog weirdness
  • Next by Date: Re: Modal dialog weirdness
  • Previous by thread: Thread context switch
  • Next by thread: NSPredicate performance considerations
  • Index(es):
    • Date
    • Thread