7
ojuskul
5y

So much for the holy grail of thread!

Comments
  • 5
    #itsover #youusedhashinsteadofcomma
  • 1
    Hell yeah let's make everything single threaded
  • 1
    Wait, is there some modern way to do multithreading in Java? Or am I missing something here? I usually don't meddle in managing threads on the level of my work but I'm genuinely curious, may come in handy at some point.
  • 0
    @smorky Parallel stream operations maybe
  • 4
    @smorky You're meant to use a thread pool (ExecutorService, ForkJoinPool, etc.) since they reuse threads. Thread creation is expensive.
Add Comment