All the threading related classes are grouped under system.threading namespace
In order to set the priority of a thread we use threadpriority enumeration. there are five levels of threadpriority. they are given below1) threadpriority.lowest - least priority is given to this thread2) threadpriority.belownormal - priority is above threadpriority.lowest3) threadpriority.normal4) threadpriority.abovenormal5) threadpriority.highest – highest priority is given to this thread
We can change the priority of a thread by using threadname.priority property
Addressof operator is used to create a delegate of the backgroundprocess method and then the backgroundprocess is executed using .start method.
Thread.currentthread hold the reference to the currently executing thread. it is a public static property
Thread.sleep() is used to pause the execution of a thread for the time mentioned. for example thread.sleep(1000) will pause the execution for 1 second.