190
1
#nullable enable
2
using System;
3
using System.Threading.Tasks;
4
using System.Threading;
5
using System.Collections.Generic;
6
using System.Diagnostics;
7
8
9
public class Program
10
{
11
public static async Task Main()
12
{
13
int threadCount = 30;
14
15
var svc = new Services.Service();
16
17
var tasks = new Task[threadCount];
18
19
var stopwatch = Stopwatch.StartNew();
20
21
for (int i = 0; i < threadCount; i++)
22
{
23
tasks[i] = Task.Run(() =>
24
{
Cached Result
Model: Lincoln Aviator
Engine: 4.6 L DOHC Modular V8
Body: SUV
Doors: 4
Transmission: 5-speed automatic
Accessories:
Leather Look Seat Covers
Chequered Plate Racing Floor
4x 200 Watt Coaxial Speekers
500 Watt Bass Subwoofer
Model: Ford Explorer
Engine: 4.0 L Cologne V6
Body: SUV
Doors: 5
Transmission: 5-speed M50D-R1 manual
Accessories:
Car Cover
Sun Shade
Engine: 4.6 L DOHC Modular V8
Body: SUV
Doors: 4
Transmission: 5-speed automatic
Accessories:
Leather Look Seat Covers
Chequered Plate Racing Floor
4x 200 Watt Coaxial Speekers
500 Watt Bass Subwoofer
Model: Ford Explorer
Engine: 4.0 L Cologne V6
Body: SUV
Doors: 5
Transmission: 5-speed M50D-R1 manual
Accessories:
Car Cover
Sun Shade