|
Listing 5-4 extracted from chapter
Processes, threads and synchronization
Listing 5-3< > Listing 5-5
This listing can be compiled with the command line: csc.exe /target:exe Example_5_4.cs Errors: 0 Warnings: 0
Example_5_4.cs
using System;
using System.Threading;
namespace ThreadTest{
class Program {
static void Main() {
Thread t = Thread.CurrentThread;
try{
t.Abort();
}
catch( ThreadAbortException ) {
Thread.ResetAbort();
}
}
}
}
Copyright Patrick Smacchia 2006 2007
|