The lack of knowledge amongst the minecraft community about this topic made me create this. I see people here and there which when discuss performance claim "minecraft is single threaded". That's not true. In fact, the proof is there when you start up spigot: Everything marked with red here is a different thread (the "Server thread" being the main one), and you can see they're being used multiple times. What probably people mean to say is that "minecraft is single CORED". See, its CORED, and not THREADED. There's a difference from the earth to the moon between a "thread" and a "core" . In fact, there are some (rare) cases where it can take advantage of multiple cores (for example, when you force upgrade your world). So lets correct that sentence. Minecraft can take up advantage only of 1 cpu core in most of the time.
Thanks for this very informative post. I have learned a lot and this has most certainly made me a better developer. I shall use this newfound knowledge to perform miracles.
its not targetted on developers, a good developer already knows that. its target is to server owners and people who can't code. u can see where this was posted
damnit you should of just lol'd with the rest of us XD but yea, SOME stuff is multi-threaded, not everything There's a lot more things that should be Threaded but aren't for one reason or another
just because not everything is multi threaded doesn't mean claming it is single threaded isn't wrong.
I thought multi-threading always equals to multi-coring (if there's more than one core), why'd they restrict threads to single core?
nope they don't. the 2 things responcible here are java and mojang's spaghettios. see in order to make java use multiple cores you need to create a lot of threads constantly, the problem with minecraft is that it is based around a main thread, and for that you blame mojang's spaghetti.
*Notch's spaghetti, the code for the versions he worked on isn't really the best. They worked off what he did and never did a full re-write
the current minecraft developers still do spaghetti, so the correct thing should be notch's and mojang's spaghettios.