Presentation is loading. Please wait.

Presentation is loading. Please wait.

 Joshua Goodman Group Program Manager Microsoft Corporation.

Similar presentations


Presentation on theme: " Joshua Goodman Group Program Manager Microsoft Corporation."— Presentation transcript:

1  Joshua Goodman Group Program Manager Microsoft Corporation

2 .NET 1.0.NET 1.1.NET 2.0 3.03.0 3.53.5.NET 4.0 2002200320052008 CTP!2005-08

3 Base Class Libraries The CLR JIT & NGEN Garbage Collector Security Model Exception Handling Loader & Binder Profiling& Debugging APIs WPF Win Forms DLR Dynamic Language Runtime DLR Dynamic Language Runtime ASP. NET WCF And more! LINQ

4

5

6

7 Thread [] threads = new Thread[8]; for (int i=0; i<8; i++) { Worker worker = new Worker(); threads[i] = new ThreadStart(worker.Work); threads[i].Start(); worker.identity =i; } Code from an Outlook addin our executives used

8 Thread [] threads = new Thread[8]; for (int i=0; i<8; i++) { Worker worker = new Worker(); threads[i] = new ThreadStart(worker.Work); threads[i].Start(); worker.identity =i; } Code from an Outlook addin our executives used

9 .NET 1.0.NET 1.1.NET 2.0 3.03.0 3.53.5.NET 4.0

10 .NET 2.0.NET 4.0 2.0 addin 3.0 addin 3.03.0 3.53.5 3.5 addin 4.0 addin Host Process (e.g. Outlook) i i

11

12

13

14

15

16

17

18

19 public Tuple DivAndRemainder(Int32 i, Int32 j) { return new Tuple.Create(i/j, i%j); } // An example of someone accessing items in a tuple. for (Int16 i = 0; i <= 25; i++) { for (Int16 j = 1; j <= 5; j++) { var tuple = DivAndRemainder(i,j); Console.WriteLine("{0}\t{1}\t{2}\t{3}\n", i, j, tuple.item1, tuple.item2); }

20

21

22

23

24

25

26 Parallel.For(0, n, i => work(i)); Parallel.ForEach(data, e => work(e));.AsParallel() var results = from item in shows.AsParallel() where item.Description.Contains(keyword) && item.Year > startYear orderby item.StartTime ascending select item;

27 Parallel.For(0, n, i => work(i)); Parallel.ForEach(data, e => work(e));

28 Ephemeral Segment Other Segments Generation 0, 1 and parts of Generation 2 live here Most of Generation 2 lives here

29 Ephemeral Segment Other Segments Ephemeral Segment Other Segments Generation 0, 1 and parts of Generation 2 live here Most of Generation 2 lives here

30

31 Ephemeral Segment Other Segments Generation 0, 1 and parts of Generation 2 live here Most of Generation 2 lives here

32 Raw latency in microseconds Background GC Concurrent GC Profiling samples of latency during application execution

33

34

35

36 public void FileSave(String name) { try { FileStream fs = new FileStream(name, FileMode.Create); } catch(Exception e) { MessageBox.Show("File Open Error"); throw new Exception(IOException); }

37 public void FileSave(String name) { try { FileStream fs = new FileStream(name, FileMode.Create); } catch(Exception e) { MessageBox.Show("File Open Error"); throw new Exception(IOException); }

38

39

40

41

42

43

44

45 public void BuyMoreStuff(Item[] cart, ref Decimal totalCost, Item i) { CodeContract.Requires(totalCost >=0); CodeContract.Requires(cart != null); CodeContract.Requires(CodeContract.ForAll(cart, s => s != i)); CodeContract.Ensures(CodeContract.Exists(cart, s => s == i); CodeContract.Ensures(totalCost >= CodeContract.OldValue(totalCost)); CodeContract.EnsuresOnThrow ( totalCost == CodeContract.OldValue(totalCost)); // Do some stuff … }

46

47

48

49

50

51

52 Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com

53

54 © 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.

55


Download ppt " Joshua Goodman Group Program Manager Microsoft Corporation."

Similar presentations


Ads by Google