' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Threading

Namespace E
    Public Class Program
        Public Shared Sub Main(ByVal args As String())
            'Dim t As New Thread(New ParameterizedThreadStart(AddressOf Print))
            't.Start(123)
            't.Join()
            (New Thread(New ParameterizedThreadStart(AddressOf Print))).Start(123)
            Console.ReadKey()
        End Sub
        Public Shared Sub Print(ByVal v As Object)
            Console.WriteLine("v=" & CType(v, Integer))
        End Sub
    End Class
End Namespace
