weight of a process
refers to the amount of resources and effort required by the OS to manage it, such as creation, scheduling and termination effort. Other factors contributing to the weight of a process is:
- size of its context
- CPU scheduling decisions
- context saving and loading
classic unix processes are considered to be heavyweight
threads (Fäden)
kernel-level threading (1:1)
user-level threading (m:1)
hybrid-level threading (m:m)
general info
linux makes no difference between heavyweight and lightweight processes
command “which”
command “vi”
command “&”
command “jobs”
command “bg”
>
<
copy-on-write (COW)
with the help of MMU, parent and child processes share the same code and data segment.
only when the child progress changes data, the segment is copied.