«« Next » « Previous
«« Next » « Previous

Link Details

Link 80140 thumbnail

By mswatcher
via pavanpodila.spaces.live.com
Submitted: May 09 / 07:06

UI libraries in general have always been single-threaded. This means that you can access the UI controls only from the thread that created it (thread-affinity). When running long-running operations you would typically use a background thread to do that job. However progress needs to be reported on the UI and the user needs to have a way to cancel the operation. Doing that from a background thread is not possible and hence you have to jump threads, ie. from the background-thread to the ui-thread.
  • 1
  • 0
  • 65
  • 8

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (0)