FRM Track Thread
FRM Track Thread
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LabExam
{
public partial class frmTrackThread : Form
{
public frmTrackThread()
{
InitializeComponent();
}
threadA.Priority = ThreadPriority.Highest;
threadB.Priority = ThreadPriority.Normal;
threadC.Priority = ThreadPriority.AboveNormal;
threadD.Priority = ThreadPriority.BelowNormal;
threadA.Start();
threadB.Start();
threadC.Start();
threadD.Start();
threadA.Join();
threadB.Join();
threadC.Join();
threadD.Join();
Console.WriteLine("-End of Thread-");
lblThread.Text = "-End of Thread-";
}
}
}