private List<Book> InternalGetMultiTBooks()
{
List<Book> result = new List<Book>();
IProfiler profiler = Profiler.Instance;
using (profiler.Step("InternalGetMultiT1"))
{
Object sync = new object();
var t1 = MTPrivate1(result, sync);
var t2 = MTPrivate2(result, sync);
t1.Start();
t2.Start();
t1.Join();
t2.Join();
using (profiler.Step("MT3"))
{
for (int i = 0; i < 1000; i++)
{ }
}
}
using (profiler.Step("internalgetmultitouter"))
{
for (int i = 0; i < 1000; i++)
{ }
}
return result;
}