What Really Happens When You `Thread.new`
This workshop peels back the layers of Ruby MRI to reveal what is really happening beneath the language’s abstractions. Using Thread.new call as a starting point, the session dives deep into CRuby’s internals - not with a high-level overview of concurrency models, but with a practical look at the underlying machinery in action.
The entire execution path will be traced, beginning with a single line of Ruby code. The process will be followed as it’s transformed into YARV bytecode, creates a native OS thread, and interacts with the VM’s core scheduling components.
Along the way, participants will gain an understanding of the functions that manage a thread’s lifecycle and how Ruby interacts with the operating system behind the scenes. Modern observability tools will be used to make these internal processes visible. By the end of the workshop, attendees will have an intuitive mental model of how CRuby works.
Sep 19 - 13:30 to 15:45
Instituto Católico de Viana do Castelo
About the speaker
Dmitrijs Zubriks
Principal Software Engineer @ GoCardless
Software Engineer with more than 10 years of experience. DevOps, Programming, Performance Optimizations – that's all on me!