lect10 - Yin Lou CS 2026, Spring 2010 Assignment 2 will be...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Yin Lou CS 2026, Spring 2010 Assignment 2 will be graded today See feedback on CMS Assignment 3 is released due this Sunday LINQ LINQ Operators Concept of Threading Synchronization Unsafe code Threading provides concurrent execution As opposed to sequential execution Single processors can give illusion of concurrent execution (time slicing) Multiprocessors and multicore can give true concurrent execution Threads vs. Processes Threads share address space Less expensive to communicate within threads How to create a thread System.Threading namespace New Thread instance with ThreadStart delegate public delegate void ThreadStart(); Start() method to start the thread Thread.Abort method Terminate a thread Raise ThreadAbortException Can be supressed with Thread.ResetAbort() Thread.Sleep method Thread.Join method Wait for the completion of another thread Better than busy-polling on Thread.IsAlive Thread.Priority property...
View Full Document

This document was uploaded on 03/15/2010.

Page1 / 19

lect10 - Yin Lou CS 2026, Spring 2010 Assignment 2 will be...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online