ThreadsAndProcesses 2 - Thread Introduction-BeingStudy.com

Thread Introduction-BeingStudy.com

Posted on

ThreadsAndProcesses - Thread Introduction-BeingStudy.com

Thread :

Thread is a smallest executable unit of a course of. Thread has it’s personal path of execution in a course of.
For instance,
if you begin MS phrase, working system creates a course of and begin the execution
of a major thread of that course of. A course of can have a number of threads. Threads of the identical
course of share the reminiscence handle of that course of. i.e threads are saved contained in the reminiscence
of a course of. Because the threads are saved in the identical reminiscence house, communication between
threads (Inter Thread Communication) is quick.Context switching from one thread to a different thread can also be cheaper.

Processes and threads may be diagrammatically represented as under,

    t 300x151 - Thread Introduction-BeingStudy.com