Saturday

Thread (OS), Multithreading

Each OS is made up one or more threads,Which represents a single path of execution through the application code.

Each application start with a single thread.(main function ).

Application can spawn additional Threads ,each of which executes the code of a specific function.

When an application spawns a new thread that thread becomes an independent entity inside of the application space,

Each thread is independent (own stack) .

A threads can communicate with each other process , perform I/O operations , and do anything else you might need it to do.

 

Thread is used to refer to a separate path of execution of code.

Process is running executable, which can encompass multiple threads.

Task is the abstract concept of work that needs to be performed.

 

Source :

Shop

Wolf - 150 x 150

Dmoz

Comments