Javascript event loop

38 views
Skip to first unread message

김대호

unread,
Nov 16, 2016, 4:44:12 AM11/16/16
to v8-users
hello~ i'm beginner at javascript

There are questions about the javascript event loop. 

i know there is only one thread in v8.

Are event loop and v8 on same thread ?

also, does setTimeout code works on seperate thread from v8 ?


Ben Noordhuis

unread,
Nov 16, 2016, 9:07:18 AM11/16/16
to v8-users
V8 doesn't implement setTimeout(), the embedder (Chromium, Node.js)
does. Whether it runs on a different thread is an implementation
detail that should not matter and is not observable to JS land.

김대호

unread,
Nov 17, 2016, 12:04:18 AM11/17/16
to v8-users
thank you! ben

then what about event loop thread?

Are v8 and event loop same thread?

Ben Noordhuis

unread,
Nov 17, 2016, 3:03:18 AM11/17/16
to v8-users
I explained in my previous message that it's an implementation detail,
it can either be the same thread or a separate one. If anything is
still unclear, please try to explain what.

김대호

unread,
Nov 17, 2016, 5:03:41 AM11/17/16
to v8-users
ah ha~

i thought your previous message was answer to only about setTimeout question.

i ask for your understanding because  my english is not good

thank you very much Ben~
Reply all
Reply to author
Forward
0 new messages