Skip to content

Commit da44999

Browse files
authored
Update README.md
Types of processes
1 parent ea71667 commit da44999

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,18 @@ Regular expressions.
647647

648648
## Process control commands
649649

650+
### Types of processes
651+
- user process: started by a regular user, they run in the user space. a user process dosen't have special access to the cpu/files that dosen't belongs to him.
652+
- daemon process:
653+
- designed to run in background, it manages some ongoing service, like sshd, httpd.
654+
- Generally they are managed by the user root. But tey run as non root user for security reasons, there is a dedicated user account for those types of processes, like sshd for the service sshd...
655+
- They are often started automatically and shutdown when the system is stoped.
656+
- They can be started and stoped on demand.
657+
- Kenrel process:
658+
- similar to daemon process, but they run in kernel space.
659+
- kernel process have access to kernel data structure which made them powerful.
660+
- dificult to change the behaviour of the kernel process, for the daemon it is possible to change its behaviour by adapting the configuration files.
661+
650662
### background/foreground mode
651663
- run a process in background mode: `man ls &`, the man program will run in the background mode, we can also send a process to bakground by typing `ctrl+z` when it is in a running mode.
652664
- to see how many jobs we have (background running process): `jobs`

0 commit comments

Comments
 (0)