markus / ConvertService / ServiceBase / ProcessAffinityTestProcess / Program.cs @ 731c84b8
이력 | 보기 | 이력해설 | 다운로드 (626 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace ProcessAffinityTestProcess |
8 |
{ |
9 |
class Program |
10 |
{ |
11 |
static void Main(string[] args) |
12 |
{ |
13 |
int a = 0; |
14 |
Random random = new Random(); |
15 |
var count = random.Next(4000001, 4000100); |
16 |
|
17 |
while (true) |
18 |
{ |
19 |
a++; |
20 |
|
21 |
if(a > count) |
22 |
{ |
23 |
break; |
24 |
} |
25 |
|
26 |
System.Threading.Thread.Sleep(10); |
27 |
} |
28 |
|
29 |
Environment.Exit(1); |
30 |
} |
31 |
} |
32 |
} |