Monday, December 24, 2012

methods of thread class in c sharp


Start():- it will start thread execution[Thread is ready for execution ]
Current Thread():- Shared method it will return thread under execution.
Sleep(milliseconds):-shared method iy will halt thread excution for perticular milliseconds
suspend():-It completly halt the thread execution
Resume():-It will state thread execution which is halted using suspend method
Abort():-It will stop thread execution[Killing thread execution]

Priority[property]:- t.Priority =thread Priority.High
                                 thread Priority.Abovenormal
                                 thread Priority.Normal[Default]
                                 thread Priority.BelowNormal
                                 thread Priority.Low
Priority will specify importance/weightage for thread.The thread with high priority will give more cpu cycle

No comments:

Bel