3 ms·
They are not real threads. That is, the CPU is not context switching them but jvm running them in async. Usually threads were also used for long running io but
by ganeshkrishnan 3y ago
They are not real threads. That is, the CPU is not context switching them but jvm running them in async.
Usually threads were also used for long running io but not cpu intensive tasks. It's recommended to use virtual threads for such scenarios now
- nottorp 3y agoThanks! > Why two sentences? Maybe you should ask ChatGPT if you want explanations with specific length requirements. As you can see, people can do it better. I put a limit on it because I didn't want an explanation of what threads are, just of the difference.
- marginalia_nu 3y agoThe post you replied to had four sentences. (But two paragraphs).
- nottorp 3y agoThe explanation had two sentences :) Edit: why are some commenters on HN so literal minded anyway? This is free form chat not code specs. You could have read "2 sentences" as "concise", you know...