Tuesday, November 20, 2012

Is there any sample C# code for simple threading?

Tags


using System;
using System.Threading;
class ThreadTest
{
 public void runme()
 {
  Console.WriteLine("Runme Called");
 }
 public static void Main(String[] args)
 {
  ThreadTest b = new ThreadTest();
  Thread t = new Thread(new ThreadStart(b.runme));
  t.Start();
 }
}


EmoticonEmoticon

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)