Posted by: Sourav | October 1, 2016

Passing data to a function to be run on a different thread in a type safe manner,VB Teacher Sourav,Kolkata 09748184075

Imports System.Threading
Module Module1

Sub Main()
Console.WriteLine(“Please enter the target number”)
Dim target As Integer = Convert.ToInt32(Console.ReadLine)

Dim number As numbers = New numbers(target)

Dim t1 As Thread = New Thread(AddressOf number.printnumbers)


End Sub

End Module

Public Class numbers
Private target As Integer
Public Sub New(ByVal target As Integer) = target
End Sub

Public Sub printnumbers()

Dim i As Integer
For i = 1 To target


End Sub

End Class


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: