PRN221_-_FA_2024_-_FE_3051.webp
AllMight90

PRN221_-_FA_2024_-_FE_3051.webp

Kizspy | Question: 38
(Choose 1 answer)
class Program{
static void Show(string message){
Console.Write(message);
}
async static Task Main(string[] args) {
Task[] arr = {
Task.Run(()=>Show("A")),
Task.Run(()=>Show("B"))
};
await Task. WhenAll(arr);
Console.ReadLine();
}
}
Which one of the following is the output of the above code?
A. Results are unpredictable
B. AB
C. BA
D. An exception will be thrown

Thông tin

Category
PRN221
Thêm bởi
AllMight90
Ngày thêm
Lượt xem
1,201
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom