I'm using this code to make my processor usage go to 100% (testing something with CPU temp)... the code is random, doesn't make sense anyways, I'm just including it for reference:
VB Code:
  1. Imports System.Threading
  2. Module Module1
  3.     Sub main()
  4.         Dim t1, t2 As Thread
  5.         t1 = New Thread(AddressOf foo)
  6.         t2 = New Thread(AddressOf foo)
  7.         t1.Start()
  8.         t2.Start()
  9.     End Sub
  10.  
  11.     Sub foo()
  12.         Dim i As Integer
  13.         Dim b As Double
  14.  
  15.         Do
  16.             For i = 0 To Integer.MaxValue
  17.                 b = (i ^ 2) - i
  18.             Next
  19.         Loop
  20.     End Sub
  21. End Module

I have a p4, 3ghz hyperthreaded, 1gb ram.... I run this and after about 7 mins the program just shuts down without any messages or anything showing up. It just dissapears from task manager. This is a bit abnormal to me and I was just wondering if you've seen something like this happen. I'm running this on winXP btw....