![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi, I am using using ThreadStart to create three threads that run a worker process, and then call Start on the threads. These 2 statemetns are executed properly but the worked method is not being started!. { Thread[] listenerThreads; WorkerClass[] listener; ..... more initialisation code here listenerThreads[i]=new Thread(new ThreadStart(listeners[i].DoListen)); - (1) listenerThreads[i].Start(); -> (2) string isAlive = listenerThreads[i].IsAlive.ToString(); -> (3) string ThreadState = listenerThreads[i].ThreadState.ToString(); -> (4) .... } all 1-4 statements are executed with out any exception but the thred does not get startedd (the DoListen() is never called since some print statements in this functions are not executed). The isAlive is 'true' and ThreadState is 'Unstarted'. I a running this app on a dual processor machine. The same code base and app was running properly on other production servers but when installed on a new server the Dolisten() method never gets invoked. Any clues what can be the problem? Thanks a zillion in adv, Ram. -------------------------------- From: ram mohan ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/) Id>K7QPlbEdPEiw9VXycsYfOg==</Id |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |