-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
7 lines (4 loc) · 798 Bytes
/
Copy pathnotes.txt
File metadata and controls
7 lines (4 loc) · 798 Bytes
1
2
3
4
5
6
7
1) timerfd_create vs timer_settime
The difference between timer_settime()/timer_create() function and timerfd_create() function is how to get the notification of timer expiration. A process in which timerfd_create() is being used will get the notification of timer expiration via a file descriptor while the other process in which timer_settime()/timer_create() are being used will get SIG_ALRM signal whenever timers are expired, To publish a SIG_ALRM signal inside the kernel, as I know, swapper stops its current job, sends the signal and resumes the job. This kind of action can make performance degradation when many performance-critical processes are being executed.
2) using alarms to get backtrace for process crash
- https://github.com/crawl/crawl/blob/master/crawl-ref/source/crash.cc