Threading

Process

  • Process is nothing but a program under the execution,it executes a set of instructions simultaneously at the run time,multiple processes may associated with the same programe
Example:
            if you are going to check the spell mistakes in word document,the other process like printing ,scanning etc... are associated with the same program

Thread

  • Thread is light weight process
  • It is sequential path code execution,each thread have it's local variable,program counter and life time
  • In single Thread run time environment, operations are executed sequentially i.e..next operation executes only previous one is completed
  • It exists in a common memory space and share the both data and code of the program
  • Thread is increase the speed of the application


No comments:

Post a Comment