nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d Yea in java multithreading with the purpose of leveraging multiple CPUs is pretty straightforward and similar to any other language.
Python really is the odd one out where multithreading is a bit of a cop-out as it doesnt actually run in parallel and across CPUs and thus requires either C-python to bypass the GIL or multi-process handling.. which is quite ugly to do efficiently.