10tp1 Programming-Language
10tp1 Programming-Language
Rovic Bilo
Michael Palermo
Ron Nicolai De Castro
Ron Nico De Castro
Java 6 Threads:
Result:
C# 4 Threads:
using System;
using System.Threading;
class MyThread
{
private string threadName;
private Thread thread;
class ThreadExample
{
static void Main()
{
MyThread t1 = new MyThread("Thread 1");
MyThread t2 = new MyThread("Thread 2");
t1.StartThread();
t2.StartThread();
t1.JoinThread();
t2.JoinThread();
Result: