Posix线程与Win32线程延迟 [英] Posix thread vs win32 thread lantencies

查看:113
本文介绍了Posix线程与Win32线程延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我打算在posix线程与win32线程的分析和评估中进行项目.
我实际上是在测量线程创建时间,线程调度等待时间(调度程序停止一个线程并启动另一个线程所花费的时间),与互斥锁的线程间通信.
我无法找到可以测量的更多延迟.
这是我的学期项目.
欢迎任何想法.

Hi,
I am planning to do project in Analysis and evalution of posix threads vs win32 threads.
I am actually measuring thread creation time, thread scheduling latency(time taken by scheduler to stop one thread and start another thread), inter-thread communication with mutex.
I am not able to find what kind of more latencies, I can measure.
This is my term project.
Any Ideas are welcome.

推荐答案

这是一个好问题……您已经选择了一些要衡量的东西,但是由于您正在衡量绩效"在两个相互竞争的标准实现之间,我还希望看到使用关键部分而不是互斥锁时的共享内存访问性能.它本来应该更快,因为它不需要去内核,但是有趣的是确切地找出要快多少.

祝您好运,请完成后作为文章发表.看到不同实现的性能统计信息总是很有趣.
That''s a good question... You''ve already chosen some things to measure, but since you''re measuring performance between two competing implementations of standards, I''d also like to see shared memory access performance when using critical sections instead of mutexes. It''s supposed to be faster since it doesn''t require going to the kernel, but it be interesting to find out exactly how much faster.

Good luck and please do post as an article when you''re done. It''s always interesting to see performance statistics for different implementations.


这篇关于Posix线程与Win32线程延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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