Buy Ventolin Without Prescription, I’ve been using Visual Studio 2010 Beta 2 and .NET 4 for a little while now and I must say it’s really nice. If you are sold on the benefits of multithreaded code (if not, you should be!), then two new features in .NET 4 and two new features in Visual Studio 2010 should really excite you.
.NET 4 has introduced a new feature called Tasks. Tasks are ways of managing discrete units of work to perform on other threads. Instead of creating Thread objects, or dispatching work to the ThreadPool, you can now create a Task object, point it at some work to do, and schedule it for work. They support cancellation, and you get pretty good insight into their current status.
Tying into that, are the new Parallel LINQ extensions. LINQ is a great technology for querying databases, XML data, and even in-memory collections. In the end though, much of what happens isn’t much better in terms of performance than a foreach loop – it’s just more expressive and has the advantage of deferred execution. If I execute a LINQ query across a collection of 10,000 objects and each evaluation takes 1 second, then it will take 10,000 seconds. The parallel extensions allow me to, almost transparently, spread the work across multiple cores. Thus, if I have 2 or 4 cores, I’ll get roughly 2x or 4x the performance (note: you’ll never actually get a linear speedup with cores, but you get the idea…). This works so well since queries almost never rely on shared state and rarely have any side-effects. In other words, I can perform my evaluations forward, backward, or staggered with no ill effects. The only question is whether the original caller wants them ordered in some way. No worry though: LINQ will hold the results until they’re all in for ordering, or release them as they come back depending on the scenario. It’s really a great system and very easy to use.
Finally, Visual Studio itself has been enhanced with new debugging tools. You’ve always been able to see the state of threads using the Threads tool window, but there’s a new Parallel Tasks tool window now for only showing work being performed by tasks. This is a much better view so you only see your app’s parallel work – not a messaging thread or background WPF workers. You can flag threads of interest, see why deadlocks are occurring, and see stack trace info from the same place. In addition to Parallel Tasks, there’s the new Parallel Stacks tool window. This is probably the coolest. Instead of seeing a list of stack frames, you can actually see how many threads/tasks are executing a given method, and how their stack frames diverge and come together. This gives you a tree with an at-a-glance view of everything your tasks are doing.
If you haven’t downloaded Visual Studio 2010 Beta 2 yet, you really should. Even for developing .NET 3.5 apps, it can’t be beat!
- Chunk partitioning vs range partitioning in PLINQ: http://blogs.msdn.com/pfxteam/archive/2007/12/02/6558579.aspx
Similar posts: Buy Methotrexate Without Prescription. Buy Xalatan Without Prescription. Buy Macrobid Without Prescription. Buy Augmentin Without Prescription. Estrace Vaginal Cream For Sale. Macrobid cost. Online buying Lotrisone hcl. Japan, craiglist, ebay, overseas, paypal. Augmentin alternatives.
Trackbacks from: Buy Ventolin Without Prescription. Buy Ventolin Without Prescription. Buy Ventolin Without Prescription. Buy Ventolin Without Prescription. Buy Ventolin Without Prescription. Buy cheap Ventolin no rx. Real brand Ventolin online. After Ventolin. Generic Ventolin. Where can i buy Ventolin online.
Posted Saturday, November 7th, 2009 at 12:19 pm by Arian Kulp