YH's Blog

Will be updated soon.
Google
 

Sunday, May 04, 2008

 

Multithread, en ,may be cool,but not easy

After kill some of my brain cells, i rewrote my small perl program in multithread fashion, wishing i might get some performance improvements. But to my surprise, except the hard-to-read code, I don't get anything ,no improvements on speed. the multithread version is slower than the sing thread in any test cases.

I recall some one once said, don't touch multithread unless it's REALLY necessary.


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

July 2006   August 2006   September 2006   October 2006   August 2007   November 2007   March 2008   April 2008   May 2008   October 2008  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]