#2- PROGRAMS vs PROCESS vs THREADS

PROGRAMS  vs PROCESSS  vs THREADS 

*PROGRAM:  A Program is a set of instructions that a computer follows in order to perform a particular task.  it is typically stored in a file on disk and represents an executable entity.

Programs can be compiled or interpreted, and they serve as a blueprint for the execution of tasks on a computer system. 




  • *PROCESS: A series of actions or steps taken in order to achieve a particular end is called a process. 
         A Process is an instance of a program in execution. when a program is loaded into memory and  executed, it becomes a process. A process is an independent entity with its own memory space, resources, and execution context. it has its own program counter, stack, and variables.

       How to find Process:

    

    *THREADS: A thread is, fundamentally, a clear, well-defined theme, subject, topic or               focus.

   A thread is a unit of execution within a process. it represents a sequence of instructions that can be         scheduled and executed independently. threads share the same memory space and resources within a       process. multiple threads within a process ca run concurrently, allowing for parallel execution of             tasks. threads has its own program counter and stack.

    Show in figure:



     Thank you

    


   

Comments

Post a Comment