Set thuộc tính của thrStatistics thành BackgroundThread

This commit is contained in:
Le Chau 2020-06-25 09:39:05 +07:00
parent 88e1fb82ef
commit a5932bebef

View File

@ -28,6 +28,7 @@ namespace AIParkingApplication
{ {
InitializeComponent(); InitializeComponent();
Thread thrStatistics = new Thread(new ThreadStart(GetStatistic)); Thread thrStatistics = new Thread(new ThreadStart(GetStatistic));
thrStatistics.IsBackground = true;
thrStatistics.Start(); thrStatistics.Start();
} }