3 ms·
> A more useful distinction would be, the JS interpreter is single-threaded while C code can be multithreaded. ...this seems like a long way round to say "JS c
by filleduchaos 1y ago
> A more useful distinction would be, the JS interpreter is single-threaded while C code can be multithreaded.
...this seems like a long way round to say "JS code is not parallel while C code can be parallel".
Or to put it another way, it seems fairly obvious to me that parallelism is a concept applied to one's own code, not all the code in the computer's universe. Other parts of the computer doing other things has nothing to do with the point, or "parallelism" would be a completely redundant concept in this age where nearly every CPU has multiple cores.
- frollogaston 1y agoBut I've never heard of someone caring about their code vs lower-level code running in parallel, just whether or not there are multiple OS threads involved in the end. Like you have 32 CPU cores, your Python batch code is only using 1, and whether or not you use Python threads to fix this depends on if you're using something like Numpy that'll release the GIL.