Plan foreground process resource allocation to avoid contention with background jobs.
Every interactive terminal session typically holds at least a shell plus, intermittently, one foreground job that has taken control of the tty via job control (fg). Multiplying active terminal sessions by the average foreground processes per terminal gives a quick capacity estimate for multi-user or multi-session Linux hosts — useful when sizing bastion hosts, jump servers, or shared development boxes where many users run interactive shells concurrently.
Foreground process count
fg_processes = active_terminals × avg_per_terminal
`ps -eo pid,tty,stat,comm` shows the controlling tty per process; processes with a '+' in the STAT column are in the foreground process group of their session. `who` or `w` lists active terminal sessions.
Foreground processes are typically interactive and latency-sensitive (a user is waiting on them), so contention here degrades perceived responsiveness even if aggregate system load looks moderate — unlike background/batch work where latency is less critical.
No — this estimates only the foreground job count. Use the Background Process Calculator for jobs moved to the background with `bg` or launched with a trailing `&`.