OP try watching this if possible.
pretty much every web framework including TE uses this type of programming. basically modern multi threading/processing.
To get more into these topics, there are pre-requisites that you have to understand to dive deeper. some programming language, some OS...