How to test whether Multi threading is working
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Wednesday, October 10, 2001 05:31 AM

I have static inner class wich extends to thread. And my main class is listenining in a ServerSocket. When i get any clients connection i am clling this client thread....
I want to check whether this Thread is working fine. I mean whether multi threading is happenening concurrently..Can u please tell how to test this...

Re: How to test whether Multi threading is working

Posted By:   Alex_Chaffee  
Posted On:   Friday, October 19, 2001 11:06 AM

Ummm... How about printing a message to the console from the thread when the client connects?

As long as you start the thread with start() and not run(), it will execute concurrently.

About | Sitemap | Contact