A priority assigned to programs running in a multitasking environment. The foreground contains the applications the user is working on, and the background contains the applications that are behind the scenes, such as certain operating system functions, printing a document or accessing the network. Users may find all sorts of programs running in the background that they are not aware of (see spyware).