LordShryku:
I have already tried those two functions,but they didn't work as I expected,In my computer , the two functions only showed that there were 3 threads, 2 of their's status are "sleep",but the fact is I already had 5 remote clients logged to my database. I don't know why, but I already have another way to resolve the problem, it is easy than this method, and what's more ,it works well.
Thank you!
Thanks to the people who had helped me and watched this thread.