Does the shell allocates a job ID to all processes(foreground and background)?
jobscommand shows the existing background jobs. How do we see job ID of foreground process?
I want to use a function in C (like
getpid()) to get the job ID and status of a given process given the pid of the process.
What is the maximum value of a job ID?
How can we find out the job ID of a process in C?
Job id is different from the process and parent process id. The above definition is not much clearly explained about the job id
Job control is a shell feature, not an OS level feature such as processes are.
Job identifiers are assigned when job control is invoked, e.g. with suspend-character (usually Ctrl-Z) or by issuing an