7. Competition
JavaScript is single-threaded and non-preemptive. These words mean that the evaluator does only one thing at a time and does only that thing until it is completed. There are two major consequences:
Each execution can be considered critical since nothing can prevent it from being carried out.
An infinite loop will therefore never end.
On the other hand, the primitive JavaScript runtime library (for example, the one provided by browsers) knows how to perform actions in parallel, such as fetching pages, images, and scripts, and processing them appropriately once their content has been obtained. Communication between these two worlds takes place via events and callbacks. The term callback can also be translated as "return function," but this is less concise than "continuation,"...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Competition
Article included in this offer
"Digital documents and content management"
(
74 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
- (1) - SELF UNGAR (D.), SMITH (R.B.) - Self : The Power of Simplicity. - OOPSLA '87 Conference Proceedings, pp. 227-241, Orlando, FL, October 1987
Standards
- ECMAScript® 2016 language specification - ECMA-262 - 2016
- IEEE Standard for the Scheme Programming...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!