ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Linux Signals. I Spent 2 Years to Understand This Part.

Автор: kimylamp

Загружено: 2024-04-11

Просмотров: 277768

Описание: A quick introduction to one of the interprocess communication mechanisms in linux.
Demonstration purpose only, don't use in the real code:
signal handler in Linux has a bit different semantics
while executing signal handler code, another signal might come. don't use printf and other reentrant-unsafe functions inside signal handlers
implement global variables concurrency more careful

00:00 Main idea. We want to execute a function when external signal arrives
00:50 While loop. We can't simply jump to the signal handler!
01:24 Interrupts. Breaking a natural instruction flow
02:30 Saving registers. Kernel preserves user register values
03:09 How pc is saved
04:03 The most important idea! Replacing the pc
04:40 Big Picture overview.
05:55 To the Source code!
07:16 Kernel entry. Disassembling my kernel binary
12:04 Replacing the program counter
12:35 Return to user.
13:28 Signal handler is finished. How to resume the main code?
14:14 How the stack works when enter the kernel
16:26 We need to keep main code's original registers!
16:49 Kernel stack has to be empty. Overflow. Nested signals
17:30 Saving original regs to user stack
18:48 Kernel trampoline. Sigreturn
20:45 Bonus! (about the compiler bug video)

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Linux Signals. I Spent 2 Years to Understand This Part.

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Ядерный вопрос Ирана закрыт | Война не закончена - Иран нарушил перемирие

Ядерный вопрос Ирана закрыт | Война не закончена - Иран нарушил перемирие

101 Важная Концепция о Linux, Которую Вы Должны Знать 🐧💻

101 Важная Концепция о Linux, Которую Вы Должны Знать 🐧💻

How a Single Bit Inside Your Processor Shields Your Operating System's Integrity

How a Single Bit Inside Your Processor Shields Your Operating System's Integrity

Faster than Rust and C++: the PERFECT hash table

Faster than Rust and C++: the PERFECT hash table

False Sharing — Почему многопоточный код ТОРМОЗИТ | CPU Memory 3

False Sharing — Почему многопоточный код ТОРМОЗИТ | CPU Memory 3

ЯЗЫК АССЕМБЛЕРА С НУЛЯ | #1 НАЧАЛО

ЯЗЫК АССЕМБЛЕРА С НУЛЯ | #1 НАЧАЛО

How to compile a function call

How to compile a function call

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

WHY IS THE HEAP SO SLOW?

WHY IS THE HEAP SO SLOW?

How Linux Kernel Runs Executables

How Linux Kernel Runs Executables

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]