Process context:
Process is a active
entity, it needs certain resources- including CPU time, memory files and I/O devices to accomplish its task.
Each processor
stored sufficient information on it’s current operating state such
that when it is again scheduled to run on the processor it can resume
its operation from an identical position. This operational state
data is known as its context.
The context of a
process includes its address space, stack space, virtual address
space. Register set image(e.g., Program counter(PC), Stack
pointer(SP), Instruction register(IR), Program status word(PSW) and
other general processor registers), updating profiling or accounting
information, making a snapshot image of its associated kernel data
structures and updating the current state of the process(waiting,
ready, etc).
Task Structure:
It is C structure
and found in <linux/sched.h>.
This structure
contains all the necessary information for representing a process,
including the state of the process, scheduling and memory-management
information, list of open files and pointers to the process’s
parent and list of its children and siblings.
It looks like you're new here. If you want to get involved, click one of these buttons!