Is ThreadPoolExecutor parallel or concurrent

is ThreadPoolExecutor parallel or concurrent? how to achieve parallelism?

Aug.25,2021

  • concurrency: the ability to handle multiple tasks at the same time, but not necessarily at the same time
  • parallel: the ability to handle multiple tasks at the same time

for users, its external performance is generally concurrent, but it is also possible that multiple tasks are assigned to multiple CPU cores, that is, multiple tasks may be executed in parallel, depending on the allocation strategy of the operating system time slice and the idle situation of the CPU core. ThreadPoolExecutor will squeeze CPU resources as much as possible to avoid wasting resources.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3733c-2b7f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3733c-2b7f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?