1 / 11

Introduction to Threading

Introduction to Threading. Silicon Valley Code Camp 2007. Pre-emptive Multitasking OS. Processes and Threads. Context Switching. Demo. Context Switching and Time Slices. Single Processor. Ain’t going to happen!. Context Switching and Time Slices. Single Processor.

Download Presentation

Introduction to Threading

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Threading Silicon Valley Code Camp 2007 Kim Greenlee: Silicon Valley Code Camp 2007

  2. Pre-emptive Multitasking OS Kim Greenlee: Silicon Valley Code Camp 2007

  3. Processes and Threads Kim Greenlee: Silicon Valley Code Camp 2007

  4. Context Switching Demo Kim Greenlee: Silicon Valley Code Camp 2007

  5. Context Switching and Time Slices Single Processor Ain’t going to happen! Kim Greenlee: Silicon Valley Code Camp 2007

  6. Context Switching and Time Slices Single Processor Kim Greenlee: Silicon Valley Code Camp 2007

  7. Context Switching and Time Slices Dual Processor Kim Greenlee: Silicon Valley Code Camp 2007

  8. Success with threading • Protect your code and data • Locking • Synchronization • Etc… • Know your tools and application stack • Disassembly Window • Thread Window • Etc… Kim Greenlee: Silicon Valley Code Camp 2007

  9. Success with Threading Demos Kim Greenlee: Silicon Valley Code Camp 2007

  10. Tips & Tricks • Implementation Plan • Plan for Problems • Log files (herding cats) • Map/PDB files and Minidumps • Testing Strategies • Debug mode in/out of debugger • Release mode • Single and Multiprocessor testing • Train testers Kim Greenlee: Silicon Valley Code Camp 2007

  11. Further Reading • “Threading in C#” – Joseph Albahari http://www.albahari.com/threading/ • “Using concurrency for scalability” – Joe Duffy http://msdn.microsoft.com/msdnmag/issues/06/09/CLRInsideOut/ • “What Every Dev Must Know About Multithreaded Apps” – Vance Morrison http://msdn.microsoft.com/msdnmag/issues/05/08/Concurrency/ • “Concurrency and the Impact on Reusable Libraries” – Joe Duffy http://www.bluebytesoftware.com/blog/PermaLink,guid,f8404ab3-e3e6-4933-a5bc-b69348deedba.aspx Available on the Wiki Kim Greenlee: Silicon Valley Code Camp 2007

More Related