Minecraft Server - Threads?

an
- in Servers
3

What different threads does a Minecraft server have?
For example, I know that the chat runs on its own thread. From 1.14, for example, the light calculation also runs on its own thread (https://www.reddit.com/r/admincraft/comments/bgty5t/in_114_light_computation_got_moved_off_the_main/). What other threads are there and what are they good for?

It is a 1.8 server with PaperMC / Waterfall as server software.

ju

Unfortunately Minecraft is a game that was not really designed for multithreading and therefore almost everything is in the same thread in the normal server (no paper / spigot). At Spigot / Paper, additional threads such as light and, more recently, async chunk loading are added. Furthermore there are internal threads (e.g. WatchDog thread) which monitor the integrity of the server or Netty threads which process the network connections of the players. Otherwise there are also threads that process the files (IO). The rest usually runs in the main thread, which also means that in the event of an error (from a plug-in, if this was not programmed asynchronously, or from a crash exploit), the server usually crashes completely.

an

At Spigot / Paper come now
further threads as well as light and recently also async chunk loading added

Also in the 1.8?

In 1.14, this is also the case with vanilla servers.

ju

In the 1.8 there was no asyny chunk loading from PaperSpigot. The other things are already integrated in the 1.8 in Spigot or Paper.