Multitasking in applications

1,481 views

Published on

If you are still thinking in threads when you want code to run in parallel you are doing it wrong. Multitasking is the new hotness and .NET Framework 4 provides many features for the creation of tasks, which is an abstraction above threads, to make your life WAY easier.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,481
On SlideShare
0
From Embeds
0
Number of Embeds
300
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Multitasking in applications

  1. 1. Multitasking in Applications<br />
  2. 2. why?<br />no arguments against needing to be multi-something?<br />avg cores on desktop: 2.68<br />cloud: scalable because of lots of small parts working separately <br />
  3. 3. Some are more equal than others<br />Common logic of add threads = going faster is just wrong.<br />Physical CPU core limits<br />Balancing cost to create vs. benefit<br />I/O bound vs. CPU bound<br />
  4. 4. Threading is just hard<br />Code complexity<br />Providing results at the end of processing<br />Cross thread communication<br />Updating the UI<br />Logic issues<br />Balancing new threads vs. reusing threads<br />Really understanding the bottlenecks<br />
  5. 5. what does .NET give us?<br />
  6. 6. The trend?<br />Threading is done<br />Done != Dead<br />Not much more can be added or changed<br />Easier with thread pools<br />Tasking is the new trend<br />Threading lite<br />Easier to consume<br />
  7. 7. demo time<br />
  8. 8. Other options?<br />Reactive Extensions<br />Qbservable<br />All those good ideas from the 60’s like pub/sub<br />
  9. 9. Summary<br />Their goal is to make this easier<br />Stop thinking in threads<br />On going process of evaluate, test & review<br />

×