{"id":3459,"date":"2019-04-24T08:53:00","date_gmt":"2019-04-24T08:53:00","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/mom-he-blocked-threads-again\/"},"modified":"2026-04-24T11:21:40","modified_gmt":"2026-04-24T11:21:40","slug":"mamma-hann-lokadi-thradum-aftur","status":"publish","type":"post","link":"https:\/\/thecodest.co\/is\/blog\/mom-he-blocked-threads-again\/","title":{"rendered":"Mamma! Hann loka\u00f0i \u00fer\u00e1\u00f0um aftur!"},"content":{"rendered":"<h2>\u00der\u00e6\u00f0ir<\/h2>\n<p>\u00dea\u00f0 helsta sem \u00fearf a\u00f0 muna: \u00fea\u00f0 eru tv\u00e6r tegundir af \u00fer\u00e1\u00f0um \u00ed <strong><a href=\"https:\/\/thecodest.co\/is\/blog\/find-your-node-js-expert-for-hire-today\/\">Node.js<\/a><\/strong>: A\u00f0al\u00fer\u00e1\u00f0ur \u2013 sem er me\u00f0h\u00f6ndla\u00f0ur af <b>Vi\u00f0bur\u00f0ahringr\u00e1s<\/b>, og <b>Vinnuafl<\/b> (\u00fer\u00e1\u00f0alaug) \u2013 sem er laug \u00fer\u00e1\u00f0a \u2013<br \/>\n<a href=\"http:\/\/docs.libuv.org\/en\/v1.x\/threadpool.html\" rel=\"nofollow\">\u00fe\u00f6kk s\u00e9 libuv<\/a>. Hver og einn \u00feeirra hefur mismunandi hlutverk. Markmi\u00f0 hins fyrsta er a\u00f0 sj\u00e1 um \u00f3blokkandi I\/O-a\u00f0ger\u00f0ir, en s\u00e1 annar s\u00e9r um \u00f6rgj\u00f6rvami\u00f0a\u00f0a vinnu og einnig blokkandi I\/O.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/libuv.png\" alt=\"L\u00edkan af libuv\" title=\"\u00fe\u00e6ttir libuv\" \/><\/p>\n<p>En hva\u00f0 er \u00fer\u00e1\u00f0ur og hvernig er hann \u00f3l\u00edkur ferli? \u00dea\u00f0 eru nokkur munarm\u00e1l, en \u00fea\u00f0 mikilv\u00e6gasta fyrir <a href=\"https:\/\/thecodest.co\/is\/blog\/why-us-companies-are-opting-for-polish-developers\/\">okkur<\/a> \u00deetta er hvernig minni er \u00fathluta\u00f0 \u00feeim. \u00de\u00fa getur hugsa\u00f0 um ferli eins og forrit. Inni \u00ed hverju ferli er minnisbiti sem er eing\u00f6ngu \u00e6tla\u00f0ur \u00fev\u00ed ferli. \u00deannig hefur eitt ferli ekki a\u00f0gang a\u00f0 minni hins ferlisins, og \u00feessi eiginleiki tryggir h\u00e1a \u00f6ryggisg\u00e6slu. Til a\u00f0 koma \u00e1 samskiptum \u00e1 milli \u00feeirra \u00feurfum vi\u00f0 a\u00f0 vinna nokku\u00f0. \u00der\u00e6\u00f0ir eru \u00f6\u00f0ruv\u00edsi. \u00der\u00e6\u00f0ir keyra innan eins ferlis og deila sama minni, svo engin vandam\u00e1l koma upp vi\u00f0 a\u00f0 \u00feeir deili minni. <a href=\"https:\/\/thecodest.co\/is\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">g\u00f6gn<\/a>.<\/p>\n<p>Hins vegar veldur eitt atri\u00f0i vandam\u00e1li. \u00dea\u00f0 kallast keppnis\u00e1stand. \u00der\u00e6\u00f0irnir geta keyrt samt\u00edmis, svo hvernig vitum vi\u00f0 hva\u00f0a a\u00f0ger\u00f0 l\u00fdkur fyrst? \u00dea\u00f0 getur gerst a\u00f0 \u00ed fyrsta sinn sem \u00fe\u00fa keyrir \u00fea\u00f0 lj\u00faki fyrsta a\u00f0ger\u00f0in fyrst, en n\u00e6st g\u00e6ti komi\u00f0 fyrir a\u00f0 hin \u00f6nnur a\u00f0ger\u00f0in lj\u00faki \u00e1 undan \u00feeirri fyrstu. \u00cdmynda\u00f0u \u00fe\u00e9r a\u00f0 vinna me\u00f0 skrifa- og lestrara\u00f0ger\u00f0ir vi\u00f0 sl\u00edkar a\u00f0st\u00e6\u00f0ur! Martr\u00f6\u00f0! Stundum er mj\u00f6g erfitt a\u00f0 skrifa r\u00e9tt. <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-code-refactoring\/\">k\u00f3\u00f0i<\/a> \u00ed fj\u00f6l\u00fer\u00e1\u00f0a umhverfi.<\/p>\n<p>Einnig hafa fj\u00f6l\u00fer\u00e1\u00f0a forritunarm\u00e1l miki\u00f0 minnis\u00e1lag vegna \u00feess a\u00f0 \u00feau b\u00faa til a\u00f0skilda \u00fer\u00e1\u00f0 fyrir hverja bei\u00f0ni; svo ef \u00fe\u00fa vilt kalla 1000 bei\u00f0nir, b\u00faa \u00feau til 1000 \u00fer\u00e6\u00f0i.<\/p>\n<p>Hvernig \u00e1 a\u00f0 takast \u00e1 vi\u00f0 sl\u00edkt vandam\u00e1l? Nota\u00f0u eina \u00fer\u00e1\u00f0 \u00ed sta\u00f0inn! Og \u00fea\u00f0 er \u00fea\u00f0 sem <strong><a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-node-js-used-for\/\">Kn\u00fatur<\/a><\/strong> sem b\u00fd\u00f0ur \u00fe\u00e9r.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/eventloop.png\" alt=\"einst\u00e6\u00f0 atbur\u00f0ahringr\u00e1s\" title=\"Yfirlit yfir atbur\u00f0ahringr\u00e1s \" \/><\/p>\n<p>Sem <strong><a href=\"https:\/\/thecodest.co\/is\/blog\/hire-javascript-developer\/\">JavaScript \u00fer\u00f3unara\u00f0ili<\/a><\/strong> \u00c9g hvet \u00feig til a\u00f0 horfa \u00e1 <a href=\"https:\/\/youtu.be\/PNa9OMajw9w\" rel=\"nofollow\">kvikmynd<\/a><br \/>\n\u00ed hvoru Bart Belder \u00fatsk\u00fdrir hugtaki\u00f0 atbur\u00f0arhringinn sk\u00fdrt. Ofangreint myndrit er teki\u00f0 \u00far kynningu hans. Og ef \u00fe\u00fa \u00feekkir \u00feessi hugt\u00f6k alls ekki, b\u00e6\u00f0i <strong>Kn\u00fatur<\/strong> og Libuv hafa fram\u00farskarandi skj\u00f6l \ud83d\ude42<\/p>\n<h2>Um lokun<\/h2>\n<p>\u00cd <strong><a href=\"https:\/\/thecodest.co\/is\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a> \u00fer\u00f3un<\/strong> \u00cd greininni segja \u00feeir a\u00f0 vegna <strong>Kn\u00fatur<\/strong> Er ein\u00fer\u00e1\u00f0a og \u00f3hindrandi, svo \u00fe\u00fa getur n\u00e1\u00f0 meiri samhli\u00f0a vinnslu me\u00f0 s\u00f6mu au\u00f0lindum en me\u00f0 fj\u00f6l\u00fer\u00e1\u00f0u lausnum. \u00dea\u00f0 er satt, en \u00fea\u00f0 er ekki eins fallegt og einfalt og \u00fea\u00f0 kann a\u00f0 vir\u00f0ast.<\/p>\n<p>Fr\u00e1 <strong>Node.js<\/strong> er ein\u00fer\u00e1\u00f0a (<a href=\"https:\/\/thecodest.co\/is\/blog\/hire-vue-js-developers\/\">JS<\/a> hluta), \u00f6rgj\u00f6rvafreist verkefni munu st\u00f6\u00f0va allar bei\u00f0nir sem eru \u00ed gangi \u00fear til vi\u00f0komandi verkefni er loki\u00f0. Svo, \u00fea\u00f0 er satt a\u00f0 \u00ed <strong>Node.js<\/strong> \u00de\u00fa getur loka\u00f0 \u00e1 allar bei\u00f0nir bara vegna \u00feess a\u00f0 ein \u00feeirra innih\u00e9lt lokunar\u00adskipun. Lokunark\u00f3\u00f0i \u00fe\u00fd\u00f0ir a\u00f0 \u00fea\u00f0 tekur lengri t\u00edma en nokkrar millisek\u00fandur a\u00f0 lj\u00faka. En rugla\u00f0u ekki saman l\u00f6ngum svart\u00edma og lokun. Svari\u00f0 fr\u00e1 gagnagrunninum getur teki\u00f0 mj\u00f6g langan t\u00edma, en \u00fea\u00f0 st\u00f6\u00f0var ekki ferli\u00f0 \u00feitt (forriti\u00f0).<\/p>\n<p>Blokkandi a\u00f0fer\u00f0ir keyrast samstillt og \u00f3blokkandi a\u00f0fer\u00f0ir keyrast \u00f3samstillt.<\/p>\n<p>Hvernig getur\u00f0u h\u00e6gt \u00e1 atbur\u00f0arhringnum \u00fe\u00ednum (e\u00f0a hindra\u00f0 hann)?<\/p>\n<ul>\n<li>V\u00e9ikbur\u00f0a reglubundi\u00f0 mynstur er sl\u00edkt sem reglubundins mynstursvinnslaforriti\u00f0 \u00feitt g\u00e6ti teki\u00f0 veldisv\u00edsislega langan t\u00edma; \u00fe\u00fa getur lesi\u00f0 meira um \u00feau.  <a href=\"https:\/\/nodejs.org\/en\/docs\/guides\/dont-block-the-event-loop\/\" rel=\"nofollow\">h\u00e9r<\/a>,<\/li>\n<li>JSON-a\u00f0ger\u00f0ir \u00e1 st\u00f3rum hlutum,<\/li>\n<li>me\u00f0 \u00fev\u00ed a\u00f0 nota samstilltar API-er fr\u00e1 <strong>Kn\u00fatur <\/strong>kjarnaeiningar \u00ed sta\u00f0 \u00f3samstilltra \u00fatg\u00e1fa; allar I\/O-a\u00f0fer\u00f0ir \u00ed Node.js sta\u00f0alb\u00f3kasafninu bj\u00f3\u00f0a einnig upp \u00e1 s\u00ednar \u00f3samstilltu \u00fatg\u00e1fur,<\/li>\n<li>a\u00f0rir forritunarvankantar, eins og samstilltar endalausar lykkjur.<\/li>\n<\/ul>\n<p>\u00cd \u00fev\u00ed tilviki, \u00fear sem Worker Pool notar \u00fer\u00e1\u00f0apott, er h\u00e6gt a\u00f0 st\u00f6\u00f0va \u00fe\u00e1 l\u00edka? \u00dev\u00ed mi\u00f0ur, j\u00e1 \ud83d\ude41<strong> Kn\u00fatur<\/strong> er byggt \u00e1 heimspeki <code>einn \u00fer\u00e1\u00f0ur fyrir marga vi\u00f0skiptavini.<\/code> Segjum a\u00f0 tilteki\u00f0 verkefni sem \u00e1kve\u00f0inn vinnuma\u00f0ur sinnir s\u00e9 mj\u00f6g fl\u00f3ki\u00f0 og taki lengri t\u00edma a\u00f0 lj\u00faka. Vinnuma\u00f0urinn ver\u00f0ur \u00fe\u00e1 fastur og getur ekki sinnt \u00f6\u00f0rum bi\u00f0andi verkefnum fyrr en fyrirm\u00e6lum hans hefur veri\u00f0 framfylgt. Eins og \u00fe\u00fa hefur l\u00edklega giska\u00f0 \u00e1 getur \u00feetta haft \u00e1hrif \u00e1 afk\u00f6st. \u00de\u00fa getur komi\u00f0 \u00ed veg fyrir sl\u00edk vandam\u00e1l me\u00f0 \u00fev\u00ed a\u00f0 l\u00e1gmarka breytileika \u00ed verkefnat\u00edmum me\u00f0 verkefnaskiptingu.<\/p>\n<h2>\u00c1lyktun<\/h2>\n<p>For\u00f0astu blokkun, \u00fea\u00f0 er v\u00edst. Ef \u00fe\u00fa getur, veldu alltaf \u00f3samhverfar \u00fatg\u00e1fur af API-um sta\u00f0alsafnsins. Annars, eftir a\u00f0 forriti\u00f0 \u00feitt hefur keyrt, getur vi\u00f0skiptavinurinn lent \u00ed \u00fdmsum vandam\u00e1lum, allt fr\u00e1 skertu gegnumstreymi upp \u00ed algj\u00f6ra aftengingu, sem er banv\u00e6nt \u00far sj\u00f3narh\u00f3li notandans.<\/p>\n<p><article-inline-code-review><\/article-inline-code-review><\/p>\n<p><b>Lesa meira:<\/b><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/why-you-should-probably-use-typescript\">Af hverju \u00fe\u00fa \u00e6ttir (l\u00edklega) a\u00f0 nota TypeScript<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/how-not-to-kill-a-project-with-bad-coding-practices\/\">Hvernig \u00e1 ekki a\u00f0 drepa verkefni me\u00f0 sl\u00e6mum forritunarvenjum?<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/data-fetching-strategies-in-nextjs\/\">Stefnur vi\u00f0 gagnaleit \u00ed NextJS<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u201cEkki st\u00edfla atbur\u00f0ahringinn\u2026\u201d \u2013 \u00fe\u00fa hefur l\u00edklega heyrt \u00feessa setningu m\u00f6rgum sinnum\u2026 \u00c9g er ekki hissa \u00fev\u00ed h\u00fan er ein af mikilv\u00e6gustu forsendunum \u00feegar unni\u00f0 er me\u00f0 Node. En \u00fea\u00f0 er l\u00edka \u00f6nnur \u201chlutur\u201d sem \u00fe\u00fa \u00e6ttir a\u00f0 for\u00f0ast a\u00f0 st\u00edfla \u2013 vinnuh\u00f3pinn. Ef honum er vanr\u00e6kt getur \u00fea\u00f0 haft veruleg \u00e1hrif \u00e1 afk\u00f6st forritsins og jafnvel \u00f6ryggi \u00feess.<\/p>","protected":false},"author":2,"featured_media":3460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>MOM! He Blocked Threads Again! - The Codest<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/is\/blogg\/mamma-hann-lokadi-thradum-aftur\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MOM! He Blocked Threads Again!\" \/>\n<meta property=\"og:description\" content=\"\u201cDon`t block the event loop\u2026\u201d \u2013 you&#039;ve probably heard this sentence many times\u2026 I&#039;m not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/is\/blogg\/mamma-hann-lokadi-thradum-aftur\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-24T08:53:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-24T11:21:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"thecodest\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thecodest\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"MOM! He Blocked Threads Again!\",\"datePublished\":\"2019-04-24T08:53:00+00:00\",\"dateModified\":\"2026-04-24T11:21:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"},\"wordCount\":755,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"is\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\",\"name\":\"MOM! He Blocked Threads Again! - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"datePublished\":\"2019-04-24T08:53:00+00:00\",\"dateModified\":\"2026-04-24T11:21:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#breadcrumb\"},\"inLanguage\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/mom-he-blocked-threads-again\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MOM! He Blocked Threads Again!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"is\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\",\"name\":\"thecodest\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"caption\":\"thecodest\"},\"url\":\"https:\\\/\\\/thecodest.co\\\/is\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mamma! Hann loka\u00f0i \u00fer\u00e1\u00f0um aftur! - The Codest","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/is\/blogg\/mamma-hann-lokadi-thradum-aftur\/","og_locale":"is_IS","og_type":"article","og_title":"MOM! He Blocked Threads Again!","og_description":"\u201cDon`t block the event loop\u2026\u201d \u2013 you've probably heard this sentence many times\u2026 I'm not surprised because it is one of the most important assumptions when working with Node. But there is also a second \u201cthing\u201d which you should refrain from blocking \u2013 the Worker Pool. If neglected, it can have a significant impact on application performance and even its security.","og_url":"https:\/\/thecodest.co\/is\/blogg\/mamma-hann-lokadi-thradum-aftur\/","og_site_name":"The Codest","article_published_time":"2019-04-24T08:53:00+00:00","article_modified_time":"2026-04-24T11:21:40+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","type":"image\/jpeg"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"MOM! He Blocked Threads Again!","datePublished":"2019-04-24T08:53:00+00:00","dateModified":"2026-04-24T11:21:40+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"},"wordCount":755,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","articleSection":["Software Development"],"inLanguage":"is","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/","url":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/","name":"Mamma! Hann loka\u00f0i \u00fer\u00e1\u00f0um aftur! - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","datePublished":"2019-04-24T08:53:00+00:00","dateModified":"2026-04-24T11:21:40+00:00","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/"]}]},{"@type":"ImageObject","inLanguage":"is","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/thecodest_blog_post_coverproduct_design_agency_-5-.jpg","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/mom-he-blocked-threads-again\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"MOM! He Blocked Threads Again!"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"is"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"is","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]},{"@type":"Person","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76","name":"thecodest","image":{"@type":"ImageObject","inLanguage":"is","@id":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","caption":"thecodest"},"url":"https:\/\/thecodest.co\/is\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/comments?post=3459"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3459\/revisions"}],"predecessor-version":[{"id":7929,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3459\/revisions\/7929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media\/3460"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media?parent=3459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/categories?post=3459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/tags?post=3459"}],"curies":[{"name":"vp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}