When a Thread Is Just a Struct
A thread 🧵 struct thread { uint64_t errno; int64_t tid; registers_t reg; lock_t lock; lock_t yield_lock; enum thread_states state; uint64_t runtime; uint64_t stack; uint64_t pf_stack; uint64_t kernel_stack; uint64_t last_scheduled; void *fpu_storage; size_t which_event; size_t attached_events_i; struct event *attached_events[MAX_EVENTS]; struct process *mother_proc; uint64_t gs_base; uint64_t fs_base; struct thread *next; };
A social media post introduces “A thread” with a thread emoji, then shows a C-style struct containing the fields of an operating-system thread. The joke is a programmer’s literal interpretation of a social-media thread as a low-level data structure, mixing online terminology with systems programming.
social media post / пост в социальной сетиthread emoji / эмодзи нитиcode block / блок кодаprogramming text / текст программыstruct definition / определение структурыmonospace font / моноширинный шрифтblack background / чёрный фонdark gray code panel / тёмно-серая панель с кодомwhite text / белый текстred syntax highlighting / красная подсветка синтаксисаC code / код на Ccomputer programming / компьютерное программирование
- @pokupkabitka / 51292 2025-08-04
- @dev_meme / 7014 2025-08-08
- Type
- image
- Size
- 496×575 · 28.8 KiB
- Mood
- dry, nerdy
- Language
- en
- Added