In an operating system, a process that runs in the foreground is running at a higher level of priority than is a background task.
Only multitasking operating systems support true foreground and background processing; however, some application programs can mimic it. For example, many word processors will print a document while still accepting input from the keyboard.
See also background.