1.

Explain processes and threads in context of OS.

Answer»

A process is a running PROGRAM that serves as the foundation for all computations. The process is not the same as programming code, although it is very similar. In contrast to the programme, which is regarded as a 'passive' entity, a process is a 'active' entity. Hardware state, MEMORY and CPU are among the attributes held by the process.

Within a process, a THREAD is a single sequence stream. Threads have the same properties as the process, which is why they're REFERRED to as lightweight processes. Threads are executed one after the other, giving the appearance that they are running in PARALLEL. Each thread has a unique state. Each thread has:

  • A program counter
  • A register set
  • A stack space

Threads are dependent on each other since they share the code, data and OS resources.



Discussion

No Comment Found