Best Dot Net Training in Chennai

Views:
 
Category: Education
     
 

Presentation Description

A thread is defined as the execution path of a program. Each thread defines a unique flow of control. If your application involves complicated and time consuming operations such as database access or some intense I/O operations, then it is often helpful to set different execution paths or threads, with each thread performing a particular job.

Comments

Presentation Transcript

Best Dot Net Training in Chennai:

Best Dot Net Training in Chennai ACCORDITTRAINING.COM

ASP.NET - Multi Threading:

ASP.NET - Multi Threading A thread is defined as the execution path of a program. Each thread defines a unique flow of control . Threads are lightweight processes .

Creation of Thread:

Creation of Thread A thread is created by creating a Thread object, giving its constructor a ThreadStart reference . ThreadStart childthreat = new ThreadStart ( childthreadcall );

Thread Life Cycle:

Thread Life Cycle The life cycle of a thread starts when an object of the System.Threading.Thread class is created and ends when the thread is terminated or completes execution .

Life Cycle of a thread:

L ife C ycle of a thread The Unstarted State : It is the situation when the instance of the thread is created but the Start method is not called. The Ready State : It is the situation when the thread is ready to execute and waiting CPU cycle. The Not Runnable State : a thread is not runnable, when: Sleep method has been called Wait method has been called Blocked by I/O operations The Dead State : It is the situation when the thread has completed execution or has been aborted.

Slide6:

Contact Us CALL US +91 9940289059 Email:enquiry@accordittraining.com www.accordittraining.com

authorStream Live Help