Parallel Programming and F#
Upcoming SlideShare
Loading in...5
×
 

Parallel Programming and F#

on

  • 5,766 views

Best of PDC08, parallel programming and F# introductions

Best of PDC08, parallel programming and F# introductions

Statistics

Views

Total Views
5,766
Views on SlideShare
5,601
Embed Views
165

Actions

Likes
1
Downloads
63
Comments
0

3 Embeds 165

http://blogs.msdn.com 143
http://www.slideshare.net 21
http://blogs.gotdotnet.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 06/06/09 06:24 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Parallel Programming and F# Parallel Programming and F# Presentation Transcript

  • Lynn Langit – Developer Evangelist http://blogs.msdn.com/SoCalDevGal Daniel Moth - Parallel Computing Platform http://www.danielmoth.com/Blog Luca Bolognese http://blogs.msdn.com/lucabol/
  • Threads Operating System Concurrency Runtime Programming Models Task Scheduler Resource Manager Integrated Tooling Programming Models Concurrency Runtime Parallel Pattern Library Resource Manager Task Scheduler Task Parallel Library PLINQ Managed Library Native Library Agents Library ThreadPool Data Structures Data Structures Tools Parallel Debugger Toolwindows Profiler Concurrency Analysis
  •  
  •  
  • Program Thread CLR Thread Pool Global Queue Worker Thread 1 Worker Thread p
  • Program Thread Task 1 Task 2 Task 3 Task 5 Task 4 Task 6 CLR Thread Pool: Work-Stealing Worker Thread 1 Worker Thread p Global Queue Local Queue Local Queue
  •  
  • ThreadPool ThreadPool .QueueUserWorkItem(…); System.Threading.Tasks Task .StartNew(…); Starting var p = Task .StartNew(() => { var t = Task .StartNew(…); }); Parent/Child var f = Future .StartNew(() => C()); … int result = f.Value; Tasks with results Task t = Task .StartNew(…); Task p = t.ContinueWith(…); t.Wait(2000); t.Cancel(); Continue/Wait/Cancel
  •  
  •  
  •  
  •  
  • var q = from p in people          where p.Name == queryInfo.Name && p.State == queryInfo.State && p.Year >= yearStart && p.Year <= yearEnd         orderby p.Year ascending          select p;
  •  
  • Area Descriptions Example Scenarios Imperative Data Parallelism Apply the same operation to common collections/sets in parallel. Looping, data partitioning, reductions, scans, etc. Medical imaging Bond pricing Task Parallelism Simultaneously perform multiple independent operations. Divide-and-conquer, tasks, threads, fork/join, futures, etc. Process control automation Shared Resources
      • Building blocks for implementing concurrent components. Scalable and thread-safe collections, locks, etc.
    Middle-tier configuration/state management Declarative Data Parallelism Define what computation needs to be done, without the how. Selections, filters, joins, aggregations, groupings, etc. Statistical modeling Coordination
      • Exploit latent operations by doing work while waiting for data. Asynch I/O, async interaction points, message passing, etc.
    Streaming audio Task Parallel Library Parallel Pattern Library OpenMP, Cluster SOA Coordination Data Structures Transactional Memory MPI, MPI.net, CCR Native Agents and Messaging Maestro PLINQ
  • www.microsoftpdc.com
      • http://msdn.com/concurrency
    Visual Studio 2010 & Framework 4.0
  • all PDC sessions Overview - why and how parallelism PLINQ screencast Other Ch9 PLINQ screencasts PLINQ MSDN article MSDN concurrency VS 2010 on Ch9 VS 2010 week Parallel Computing - Vision Daniel Moth blog
    • Fewer side effects
    • More opportunities for parallelism
    • Used for advanced computation, math, data mining, financial
    • More concise, fewer bugs
  •  
      • Improvements to the F# research release
    April 2008 Microsoft Research refresh release
      • Broadly improved VS 2008 integration
      • Simplifications in language and libraries
    Just Released September 2008 CTP
      • Full product-quality release
      • Fully stable and supported language
      • Aligned with future VS releases
    2009 Supported Release
  • F# tutorials F# MSDN Developer Center F# for Windows Azure F# Samples Expert F# book and code samples
    • On the Web:
      • http://fsharp.net
    • Books:
  • Thanks vets!