I am new to operating systems and have been wondering about this.
Consider a normal text editor, and it's process running in the CPU. Since text editors include IO operations, do the process keep switching it's state from Wait -> Run -> Wait etc. While the user is typing and the same is reflected on the screen or some processing such as auto-correct etc. And while the current process is in Wait, other process is in Run state (Context Switching).
Text - Editor itself creates multiple processes, one for handling IO operation and other for processing the data and it is being established through Inter-Process Communication.
New to OS and stuck with this, thank you for any kind of help .