(click on heading for code snippets)

Multithreading

Into MultiThreading ActionResult
thread1 started
thread2 started
--
Into thread1
thread1 0
thread1 1
thread1 2
thread1 3
thread1 4
After thread1 count
Main sleeping for 2 seconds
--
Into thread2
thread2 0
thread2 1
thread2 2
thread2 3
thread2 4
After thread2 count
--
thread1 aborted
thread2 aborted