I am working on my own shell and I have a confusion about job management.
I am able to list processes owned by a user and pause any process that its pid is given. However, as stated in title, I need to bring back paused jobs to running state and either background or foreground.
My commands will be like this:
mybg <PID> myfg <PID>
Now, I just thought getting process names with that pids and use bg/fg with process names. This does not help much.