Add a new thread for spectrum calculation.
Merge pull request #123 from liminsun/master

Add a new thread for spectrum calculation.