由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - pthread in cygwin
相关主题
EBUSY 的定义how to statically initialze a mutex in class?
c++问题how many ways in C++ to release a mutex?
waiting for N condition variables in linuxHow to avoid deadlock ?
condional variable thread sync 问题 (转载)请教pthread producer-consumer问题
double-checked lockingpthread_create inside a constructor
多线程的程序设计有什么好书推荐? (转载)你们都检查这些system call的返回值吗?
question about the read/write locker连续release mutex/semphore 2次有什么问题吗?
is pthread_mutex_destroy() required to call?pthread mutex能不能用与thread和process之间
相关话题的讨论汇总
话题: cygwin话题: pthread话题: app话题: finish话题: thread
进入Programming版参与讨论
1 (共1页)
g****y
发帖数: 436
1
sorry, no chinese input here.
I wrote an c app in ubuntu with pthread libs linked and it takes about 1m to
finish.
Then I compiled the same c app in cygwin using the same gcc flags and it
passed.
HOwever, the resulting c app takes around 10 ms to finish.
After revieweing the logs, I found that threads spent too much time waiting
for the working thread accessing mutexs.
In one sentence, the working thread becomes much slower in cygwin.
COuld any one help me with this?
1 (共1页)
进入Programming版参与讨论
相关主题
pthread mutex能不能用与thread和process之间double-checked locking
怎么练习C++ multi-threading?多线程的程序设计有什么好书推荐? (转载)
熟悉C++,向Windows 还是Linux 方向发展? thanksquestion about the read/write locker
苦寻VNI Numerical Lib...is pthread_mutex_destroy() required to call?
EBUSY 的定义how to statically initialze a mutex in class?
c++问题how many ways in C++ to release a mutex?
waiting for N condition variables in linuxHow to avoid deadlock ?
condional variable thread sync 问题 (转载)请教pthread producer-consumer问题
相关话题的讨论汇总
话题: cygwin话题: pthread话题: app话题: finish话题: thread