Complex sentence: In some operating systems or programming languages, the initial entry is not part of the program but of the runtime library, in which case the runtime library initializes the program and then the runtime library enters the program.
Split into simpler sentences: In some operating systems or programming languages, the initial entry is not to the program but to the runtime library. In that case, the runtime library initializes the application, then the runtime library enters the program.