Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Povídání o Linuxu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Povídání o Linuxu
Commits
2c6560b4
Commit
2c6560b4
authored
2 years ago
by
Martin Zimen
Browse files
Options
Downloads
Patches
Plain Diff
Zapisky z /proc
parent
21e05612
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
proc.md
+28
-0
28 additions, 0 deletions
proc.md
with
28 additions
and
0 deletions
proc.md
0 → 100644
+
28
−
0
View file @
2c6560b4
# Proc
man 5 proc
man 2 prctl
*
virtuální fs
*
symlinky v proc jsou divné
*
složka pro každý PID
*
procesy vs. vlákna
*
kernelu je to jedno
*
POSIX to řeší
*
jedno vlákno je hlavní
*
SIGKILL se rozpošle všem vláknům
*
jinak si je zabije libc
*
když proces skončí, tak po něm zůstane zombie
*
na něj musí rodič počkat
*
sdílení paměti
*
nejlépe otevřít soubor a mmap
*
třeba v /dev/shm
*
nepoužívat System V IPC
> UNIX signály
> * jednobitová fronta
> * maska
> * čeká ve frontě, dokud není povolená maska
>
> Zajímavost: JITuje se někdy v SIGSEG
> V signal handlerech nelze používat všechno
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment