79343120

Date: 2025-01-09 15:17:16
Score: 2.5
Natty:
Report link

If I read the question as :

Answer is no.

This not about Java, this is about OS Scheduling. (so technically answer depends of your OS, but they all do multi tasking since very long)

So in your precise example, your 10 "fast" tasks will well complete while your 4 "long I/O blocked" tasks are still "processing", on a 15 threads pool size executor service. (whatever is the physical number of CPU/core, or the Java version)

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29127437