Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does a Thread Self Kill?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Does a Thread Self Kill?
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01102581
Message ID:
01102581
Vues:
74
I was just curious... if a new Thread is created using the following example:
    '***************************************
    ' Delegate Routines
    '***************************************
    Delegate Sub OriginalSubroutine(ByVal Parameter1 as String, ByVal Parameter2 as String, ByVal Parameter3 as String)

    Public Sub Test()
        '***************************************
        ' Initialize Variables
        '***************************************
        Dim objNewThread as New ThreadedSubroutine_Start(AddressOf OriginalSubroutine)

        '***************************************
        ' Activate Seperate Thread
        '***************************************
        objCreateDatabaseThread.BeginInvoke(Parameter1, Parameter2, Paremeter3, Nothing, Nothing)
    End Sub
OR
        '***************************************
        ' Initialize Variables
        '***************************************
        Dim objNewThread as New Threading.Thread(AddressOf SubToRun)

        '***************************************
        ' Activate Seperate Thread
        '***************************************
        objNewThread.Start()
...does the Thread "Dispose" of itself when the subroutine is completed?
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform