剖析线程同步锁争 [英] Profiling thread sync lock contention

查看:159
本文介绍了剖析线程同步锁争的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去,我已经使用性能分析工具,如nprof,Equatec探查和Yourkit分析器可以识别并消除/降低性能瓶颈code主要是在一个线程(串行执行)运行。现在我写了很多的多线程code可以通过锁争用减慢;什么样的工具和技巧,可以用来识别锁争正在发生以及影响有多大?

In the past I've used performance profiling tools such as nprof, Equatec profiler and Yourkit profiler to identify and remove/reduce performance bottlenecks in code mostly running in one thread (serialized execution). Nowadays I write a lot of multi-threaded code which can be slowed down by lock contention; what tools and tricks can be used to identify where lock contention is occuring and by how much?

推荐答案

这是面世不久,目前航运在Visual Studio 2010测试版2,这里是一个<一href="http://channel9.msdn.com/shows/Going+Deep/Visualizing-Concurrency-Inside-the-Concurrency-Visualizer-Profiling-Tool/"相对=nofollow>工具视频。

This is available soon, currently shipping in Visual Studio 2010 beta 2. Here's a video of the tool.

这篇关于剖析线程同步锁争的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆