yes that is what i want.
is executeUserProgram() a system call? how do i implement this in windows. I am thinking of forking a process and then kill the other process after certain amount of time. will it work?
executeUserProgram()
Is an abstraction. I made up the name to explain how the behavior might be implemented in the abstract. Implementing the abstraction in a way appropriate for an actual program is software engineering based on the actual program's actual constraints.