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? |
|