Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Termination of Worker/Child thread terminates the Parent Thread
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Sanjay, post: 1995199"] Hi All Have an app. On start up it creates a thread and goes to sleep. Either on termination or completion of the worker thread, it triggers the main app to start executing. Question Why is the completion of the worker/child thread triggering the execution of the main app thread. Shouldn't the main app thread remain in the suspended state? Module Module1 Sub Main() Dim connStr As ConnectionStringSettings = Nothing Dim myConfigReader As Config = New TMISSuite.Config ' Start TMISManager Console.WriteLine(System.DateTime.Now() + " Starting Manager Thread") Dim myManager As TMISManager = New TMISManager(connStr.ToString()) Dim myThread As New Thread(AddressOf TMISManager.StartTMISManager) myThread.Start() Thread.Sleep(0) Console.WriteLine("About to exit main app") End Sub End Module Thanks in advance regards Sanjay [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Termination of Worker/Child thread terminates the Parent Thread
Top