PRN221_-_FE_-_SU_2023_506.webp
K

PRN221_-_FE_-_SU_2023_506.webp

Answer (Choose 1 answer)
A. Results are unpredictable
B. Thread 'Main'
Task 01:1
Task 01:2
C. Task 01:1
Thread 'Main'Task 01:2
D. Task 01:2
Thread 'Main'Task 01:1
static void PrintNumber(string message){
class Program{
for (int i = 1; i <= 2; i++) { Console.WriteLine($"{message}:{i}");Thread.Sleep(1000);
}
}
static void Main(){
Thread.CurrentThread.Name = "Main";Task task01 = new Task(() => PrintNumber("Task 01"));task01.Start();Console.WriteLine($"Thread '{Thread.CurrentThread.Name}");Console.ReadKey();
}
}
Which one of the following is the output of the above code?
Exit 45

Thông tin

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

Image metadata

Filename
PRN221_-_FE_-_SU_2023_506.webp
File size
74.2 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom