25
1
using System;
2
using System.Threading;
3
using System.Threading.Tasks;
4
5
public class Program
6
{
7
public static void Main()
8
{
9
Parallel.Invoke(
10
BasicAction,
11
() => {
12
Console.WriteLine("Thread={0}", Thread.CurrentThread.ManagedThreadId);
13
},
14
delegate()
15
{
16
Console.WriteLine("Thread={0}", Thread.CurrentThread.ManagedThreadId);
17
}
18
);
19
}
20
21
private static void BasicAction()
22
{
23
Console.WriteLine("Thread={0}", Thread.CurrentThread.ManagedThreadId);
24
}
25
}
Cached Result
Root version: 2
Versioned files:
Key: DB
Label: Table0
Items:
Version: 0
Fields:
Field name: key
Field type: StringU8
Field name: value
Field type: Float
Key: NoDbObject
Label: (none)
Items:
Version: 1
Fields:
Field name: objectProp
Field type: StringU8
Versioned files:
Key: DB
Label: Table0
Items:
Version: 0
Fields:
Field name: key
Field type: StringU8
Field name: value
Field type: Float
Key: NoDbObject
Label: (none)
Items:
Version: 1
Fields:
Field name: objectProp
Field type: StringU8