I have went thorugh the Deadlock Avoidance algorithm recently.
I have a question towards it.
Now consider a program is going to run, and it will require, user interaction/input after some steps.
Whether, while starting the execution of the program itself,
the OS will come to know the requirement of the program.
Or, only after the execution of set of steps, it will come to know the requirement?
Whether the program will have its behavior states with itself?
[I mean, whether it will have some kind of the index page, where,
it will have the set of the requirement, like input from user, so the OS can read this index to understand the program more]