Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Visual Studio 2013 Cookbook
  • Table Of Contents Toc
Visual Studio 2013 Cookbook

Visual Studio 2013 Cookbook - Second Edition

By : Jeff Martin
4.2 (13)
close
close
Visual Studio 2013 Cookbook

Visual Studio 2013 Cookbook

4.2 (13)
By: Jeff Martin

Overview of this book

This book is a practical guide to using Visual Studio 2013 that will help you become familiar with the improvements made over previous versions. Each recipe provides a hands-on approach to the new features with step-by-step instructions on how to increase your productivity. If you are a developer excited about the new features introduced in Visual Studio 2013, then no matter what your programming language of choice is, Visual Studio 2013 Cookbook is for you. You should have a good knowledge of working with previous versions of Visual Studio to enjoy the recipes in this book. This book provides practical examples to help you use Visual Studio 2013 more effectively.
Table of Contents (17 chapters)
close
close
Visual Studio 2013 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
2
Index

Debugging parallel code


With the prevalence of multi-core CPUs, we are seeing more and more applications taking advantage of parallel processing to improve performance. .NET Framework 4.0 added a number of features such as Task Parallel Library (TPL) and Parallel LINQ (PLINQ) to make the development of applications that take advantage of multi-core CPUs much simpler.

The debugging experience for threaded applications in Visual Studio has got better with each release, and VS2013 is no exception. Let's take a look at what is available.

Getting ready

Start a premium edition Visual Studio 2013 and create a new C# console application. For this recipe, call the application ParallelDebugging.

How to do it…

In order to debug the parallel code, perform the following steps:

  1. Use the following code to populate the body of Program.cs. It's a pretty simple program that starts a parallel for loop, which in turn calls a method that performs meaningless calculations intended to keep the CPU busy.

    class Program...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Visual Studio 2013 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon