paint-brush
Is JavaScript a Single Threaded Language?by@sharjeelsidd
1,631 reads
1,631 reads

Is JavaScript a Single Threaded Language?

by Sharjeel4mJuly 11th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

JavaScript is a single threaded language that can be non-blocking. Single threaded means it has only one statement executed at a time. Javascript engine runs on a memory heap and a call stack. The call stack job is to fill in the instructions and pop an instruction as it gets executed. When the top of the call stack is run first it pops an instruction and sends it out to the Web API. The most popular is through Multi-threading. This however can run into a problem known as Deadlock, which can be dealt with various deadlock prevention mechanism.

Company Mentioned

Mention Thumbnail
featured image - Is JavaScript a Single Threaded Language?
Sharjeel HackerNoon profile picture
Sharjeel

Sharjeel

@sharjeelsidd

L O A D I N G
. . . comments & more!

About Author

Sharjeel HackerNoon profile picture
Sharjeel@sharjeelsidd

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Habr
Guitricks
Savepearlharbor
Papasearch