r/java • • Jun 10 '24

[deleted by user]

[removed]

615 Upvotes

594 comments sorted by

View all comments

Show parent comment

3

u/koflerdavid Jun 12 '24

JS is characterized exactly by an absence of concurrency.

2

u/bigorangemachine Jun 12 '24

Ya good point.

I was thinking of concurrency in operating system not so much algorithmic/calculations.

You could farm that off to a sub process but its not native so fair enough

1

u/koflerdavid Jun 12 '24

Since that is supported by both NodeJS and browsers, it kinda counts as a concurrency option. The disadvantage is that you'd be restricted to message passing. I'm not up to date whether there are APIs to share byte buffers and synchorisation objects between subinterpreters or subprocesses now.