Fix thread no bug, add a parameter -- thread pool number