~/talk

Threads in Embedded Linux- 6 Easy Pieces

links:none on file
slides:none on file

Maps Linux threads to clone(2) and shows pthread_create calling clone, demonstrated with strace -f where main returning triggers exit_group and kills new threads. Uses pmap and a stack-overflow demo to show virtual reservation vs on-demand commit and the default stack 8 MB vs 384 KB difference between glibc and musl (adjust pthread_attr_t stack size). Shows mutex vs semaphore behavior, condition-variable wait loop pattern, and a reproducible printf-in-signal-handler deadlock traced with gdb; fixes by blocking signals in threads and using a dedicated sigwait handler thread.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Six easy pieces overview
  3. 3:53Threads in embedded Linux
  4. 7:11Thread creation and lifecycle
  5. 13:37Thread stack management
  6. 20:30Memory access and synchronization
  7. 30:10Threads and signals
  8. 37:19Resources and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.