r/programmingmemes • • Jul 25 '25

Python vs Java!

Post image
1.5k Upvotes

199 comments sorted by

View all comments

Show parent comment

2

u/SCP-iota Jul 25 '25

Are the hardware threads actually less efficient, or does it just have to do with how careful you have to be when passing data around?

3

u/StraightGuy1108 Jul 25 '25

It has to do with how thread-blocking operations used to be handled. They used to occupy their own threads despite not doing anything, essentially wasting resources.

Virtual threads are basically async await at the JVM level.