且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Posix线程与Win32线程延迟

更新时间:2023-11-13 23:03:04

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

祝您好运,请完成后作为文章发表.看到不同实现的性能统计信息总是很有趣.
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.