[{"data":1,"prerenderedAt":80},["ShallowReactive",2],{"term-c\u002Fconcurrency":3,"related-c\u002Fconcurrency":61},{"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":55,"sitemap":56,"stem":59,"subcategory":6,"__hash__":60},"terms\u002Fterms\u002Fc\u002Fconcurrency.md","Concurrency",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",{},"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 happening simultaneously. One chef, multiple dishes being worked on in turns.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Concurrency is the ability of a system to handle multiple tasks in overlapping time periods. It doesn't require true parallelism — a single CPU can be concurrent by interleaving tasks. Async\u002Fawait, event loops, and coroutines are concurrency mechanisms.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Node.js handles concurrency via its event loop, not threads.\" \u002F \"We need concurrency to handle thousands of simultaneous requests.\"",{"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","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...","intermediate","md","c",{},true,"\u002Fterms\u002Fc\u002Fconcurrency",[49,50,51,52,53,54],"Parallelism","Thread","Process","Async","Race Condition","Deadlock",{"title":5,"description":41},{"changefreq":57,"priority":58},"weekly",0.7,"terms\u002Fc\u002Fconcurrency","JqtuKzqNaj1A12lUJRXIAHlGrZwOTGbnGFF75Wm-wYA",[62,65,68,71,74,77],{"title":52,"path":63,"acronym":6,"category":40,"difficulty":42,"description":64},"\u002Fterms\u002Fa\u002Fasync","Async means 'don't wait around'. You order food at a restaurant, then chat with friends instead of standing at the kitchen window staring.",{"title":54,"path":66,"acronym":6,"category":40,"difficulty":42,"description":67},"\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":49,"path":69,"acronym":6,"category":40,"difficulty":42,"description":70},"\u002Fterms\u002Fp\u002Fparallelism","Parallelism is doing multiple things at literally the exact same time — two chefs cooking two dishes simultaneously.",{"title":51,"path":72,"acronym":6,"category":40,"difficulty":42,"description":73},"\u002Fterms\u002Fp\u002Fprocess","A process is a full running program with its own isolated chunk of memory.",{"title":53,"path":75,"acronym":6,"category":40,"difficulty":42,"description":76},"\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...",{"title":50,"path":78,"acronym":6,"category":40,"difficulty":42,"description":79},"\u002Fterms\u002Ft\u002Fthread","A thread is a mini-worker inside your program that can run tasks independently.",1776518268306]