|
-
February 27th, 2008, 11:28 AM
#4
Re: Multi Threading
 Originally Posted by satanorz
Interesting Link. I want to start learning about multithreading, so, I want to translate the code to VB.net.
This c# code I had get from that link:
Code:
using System;
using System.Threading;
public class Test
{
static void Main()
{
Counter foo = new Counter();
ThreadStart job = new ThreadStart(foo.Count);
Thread thread = new Thread(job);
thread.Start();
for (int i=0; i < 5; i++)
{
Console.WriteLine ("Main thread: {0}", i);
Thread.Sleep(1000);
}
}
}
public class Counter
{
public void Count()
{
for (int i=0; i < 10; i++)
{
Console.WriteLine ("Other thread: {0}", i);
Thread.Sleep(500);
}
}
}
have the "using" statement. ¿Is correct to translate it to VB.NET as the "Implements" statement?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|