The first operating system was used with the ENIAC (Electronic Numerical Integrator and Computer). It was very hard to make ENIAC do work. How the operating system worked was based on how the switches and cables were put together and depending on this factor punch cards would make a result. While this was an operating system of a kind, it is not what is thought of as one in modern times.