Comments (1)
In my expectation, the example code should output like this.
you may not expect that ordering, it is neither specified nor documented.
explanation: when two threads run in parallel, the order in which they finish their execution may or may not be in the order in which the work was assigned or started. complex thread scheduling occur underneath. in addition, the console print is asynchronous, which means an issuance of console.log may not be delivered synchronously.
If maintaining a specific order is a priority, pls avoid multi-threading.
hope this helps!
from help.
Related Issues (20)
- "-sh: ./node: not found" on ARM platform HOT 1
- How to Enable Fast API Calls in Embedded Development HOT 1
- TENTANDO INSTALAR O YARN HOT 1
- Using official guide - Failed to install using 'fnm' CLI command on Win11 using PowerShell 7.4.4 HOT 3
- Asserting a range with descriptive error messages HOT 15
- [node:test] help using node api for node:test's run method with coverage report HOT 1
- Node-red is using the wrong version of nodejs and failing to start HOT 1
- WebSocket Data Transfer Slows Down After Node.js 16.14.2 Release HOT 21
- "# Fatal error in , line 0" when trying to run Node app from Rsyslog HOT 27
- tlsSocket.servername is false (sometimes) HOT 6
- Usual suspects when heapTotal and heapUsed grow steadily HOT 1
- Test reporter spec has duplicate test titles HOT 2
- How does code coverage actually work? HOT 3
- How to debug random unhandled EPIPE error HOT 7
- How to spread records in a pipeline to multiple readers HOT 4
- Failure To Launch with Environment Value HOT 1
- OOM - Segmentation fault (not ulimit, not cgroups, not max-space, not exhausted RAM) HOT 3
- How to Debug Multiple Instances in Node.js Embedded Development
- The “this wiki” link in this repo’s README is broken HOT 2
- UDP dgram error on receive message - EINVAL - Azure Web App/Azure Functions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from help.