Similarities between Process and Threads


  • Both have a parent process.
  • Process has a process id same way thread has a thread id.
  • We can create a process within a process same way we can create thread within a thread
  • Both process and thread has priorities.
  • Unlike processes, threads are not independent of one another.
  • Unlike processes, all threads can access every address in the task .
  • Unlike processes, thread are design to assist one other. Note that processes might or might not assist one another because processes may originate from different users.
  • Thread is a light weight process that is the only comparision. Otherwise you cannot compare both.
    
    
  • A thread is contained inside a process. Multiple threads can exist within the same process and share resources such as memory, while different processes do not share these resources.
  • A Process is an instance of a computer program, consisting of one or more threads.
  • Each process must have at least one thread running within it, and each thread must be running within a process.
  • Each process gets it own address space and memory allocation by OS, where as thread makes use of its parent process resources.
  • When parent process dies, all its child process dies, but v-v is not true

Comments

Post a Comment