[{"data":1,"prerenderedAt":76},["ShallowReactive",2],{"term-t\u002Fthread":3,"related-t\u002Fthread":60},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":54,"sitemap":55,"stem":58,"subcategory":6,"__hash__":59},"terms\u002Fterms\u002Ft\u002Fthread.md","Thread",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A thread is a mini-worker inside your program that can run tasks independently. Your app can have multiple threads running at the same time — one loading data, one updating the UI — sharing the same memory space like roommates in an apartment.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A thread is the smallest unit of execution within a process. Multiple threads share the same process memory, enabling concurrent execution. Threads are lightweight but require synchronisation mechanisms (locks, mutexes) to avoid race conditions.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Spawn a background thread for the file upload so the UI stays responsive.\" \u002F \"Thread safety is why we use mutexes around that shared resource.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"general","A thread is a mini-worker inside your program that can run tasks independently.","intermediate","md","t",{},true,"\u002Fterms\u002Ft\u002Fthread",[49,50,51,52,53],"Process","Concurrency","Parallelism","Race Condition","Deadlock",{"title":5,"description":41},{"changefreq":56,"priority":57},"weekly",0.7,"terms\u002Ft\u002Fthread","Nuq97KVqG3D1Gs7wlhehNsvo2OC4PIwuWZ5jUkYJ0i4",[61,64,67,70,73],{"title":50,"path":62,"acronym":6,"category":40,"difficulty":42,"description":63},"\u002Fterms\u002Fc\u002Fconcurrency","Concurrency is juggling multiple tasks at once — not necessarily at the exact same instant, but switching between them fast enough that they all seem to be...",{"title":53,"path":65,"acronym":6,"category":40,"difficulty":42,"description":66},"\u002Fterms\u002Fd\u002Fdeadlock","A deadlock is when two things are each waiting for the other to go first, and neither ever does. Thread A holds Lock 1 and wants Lock 2.",{"title":51,"path":68,"acronym":6,"category":40,"difficulty":42,"description":69},"\u002Fterms\u002Fp\u002Fparallelism","Parallelism is doing multiple things at literally the exact same time — two chefs cooking two dishes simultaneously.",{"title":49,"path":71,"acronym":6,"category":40,"difficulty":42,"description":72},"\u002Fterms\u002Fp\u002Fprocess","A process is a full running program with its own isolated chunk of memory.",{"title":52,"path":74,"acronym":6,"category":40,"difficulty":42,"description":75},"\u002Fterms\u002Fr\u002Frace-condition","A race condition is when two parts of your code are racing to do something at the same time and the winner isn't guaranteed — leading to unexpected, hard-t...",1776518318782]