1 / 23

Visual Studio 2010 Beta 2

Visual Studio 2010 Beta 2. About Me. Microsoft MVP Intel Blogger TechEd Israel, TechEd Europe Expert C++ Book http://AsyncOp.com http://Asaf.Shelly.co.il. Task Parallel Library - TPL. .Net Framework 3.5 See TechEd 2008 VS2010 with .Net 4.0 Language Extensions Lambda Expressions

marnin
Télécharger la présentation

Visual Studio 2010 Beta 2

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. Visual Studio 2010 Beta 2

  2. About Me • Microsoft MVP • Intel Blogger • TechEd Israel, TechEd Europe • Expert C++ Book • http://AsyncOp.com • http://Asaf.Shelly.co.il

  3. Task Parallel Library - TPL • .Net Framework 3.5 • See TechEd 2008 • VS2010 with .Net 4.0 • Language Extensions • Lambda Expressions • C#, VB, F#, C++

  4. From for to Parallel.For for (inti=0; i<100; i++) { int x = i + i; } Parallel.For(0, 100, i => { int x = i + i; });

  5. C++ parallel_for parallel_for(0, 100, [&] i { int x = i + i; });

  6. Visual Studio 2010 • Multi-Core Programming • Tasks • Agents • Parallel Loops • Parallel Algorithms • Parallel Replacement for STL • Seamless Task Usage

  7. Task Oriented Design Open Scan Scan Scan Scan Scan Scan Parallel Extensions Loop Modify Modify Parallel Extensions Loop Write

  8. PLINQ – Parallel LINQ

  9. VS2010 Demo C# Parallel.For

  10. Keep an eye for… • Shared are Globals • Parallel Loops are not loops • Define data as Loop internal • Race Conditions are still here • Locks!! • I/O – Disk, Network, etc.

  11. VS2010 Demo C++ Parallel_For

  12. VS2010 Demo Understanding Lambda and parallel_for

  13. Visual Studio Parallel Debugger • Parallel Task List • Parallel Task Stack • Built-in Profiler

  14. Integrated Tooling Programming Models Programming Models PLINQ Parallel Debugger Toolwindows Task Parallel Library Parallel Pattern Library Agents Library Data Structures Concurrency Runtime Concurrency Runtime Data Structures Task Scheduler Profiler Concurrency Analysis ThreadPool Task Scheduler Resource Manager Resource Manager Operating System Threads Key: Managed Library Native Library Tools

  15. Advanced Parallel In VS2010 • Agents – Resource Owners • Task Groups • Task Cancellation • Task Cleanup (CancelIo)

  16. VS2010 Demo New F# Application

  17. Hints for the future • http://msdn.microsoft.com/en-us/devlabs/dd795202.aspx • AXUM – Language for parallel computing • STM.Net - Software Transactional Memory for concurrent memory separation • Spec Explorer – Graphical analysis of software behavior • … and more

  18. A bit nostalgia • TechEd 2008 Israel

  19. Do we really want Parallel Code? 2005 2007 2008 2010 Do users even care? Parallel Computing Vs. Classic Design

  20. Change In Mindset Everything is stopped. Waiting for the photographer Everyone is working independently

  21. Change In Mindset Developers are writing functions Developers are managing tasks

  22. Change In Mindset If you can't Adapt You are left behind If you can't Adapt You are left behind Doing things the way we always have Things are going to be different

  23. Thank You

More Related