answersLogoWhite

0


Best Answer

Foreground task is a process which happens on screen and background task is a process which is run offscreen.

Ex: If you are clicking on a link and a page is opened ie foreground output bt to show that page to the end-user, there is a process in the programming language which is created off-screen by the developer of the program or website.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a foreground and a background task?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can you stop computer programmes running in the background?

In UNIX: with command kill, in Windows: from Task Manager.


What is the difference between Process and task?

Process means squence of work like 1-2-3-4-5-...... and task means perticular one work in the process. for a example that for making the any items has differnet process but in the process some work that is called a TASK. May be my answer clear about your question.. Regards, R.M.SHARMA .INDIA


What is the difference between instruction and pseudo-instruction?

A pseudo-instruction : A symbolic representation in a compiler or interpreter. An instruction : a simple statement in any language that defines a task or computation etc.


What is the difference between a specific procedure and work instruction?

A procedure is a way or manner of doing something that usually involves a series of calculated steps. Work instructions, on the other hand, pertain to a specific task and the step-by-step process for completing that task. Procedures relate to broad processes, while work instructions are centered around one very specific task.


What is the difference between a Parent Process and Foreground Process?

A parent process is a process that has spawned one or more child processes such that it takes "ownership" of those processes. A foreground process typically means a process that has a user-interface as opposed to a background process which typically does not. Most background processes are services while most foreground processes are applications. It's important to note that the term "process" has a specific meaning in a multi-processing environment. A process is a computer program that has one or more threads of execution. A thread is the machine-level representation of a task and a process may instantiate as many tasks as are required (hardware permitting). All tasks share the same memory space as the process itself, however each task has its own stack for local storage, as well as to enable the thread's function call-and-return mechanism in addition to thread-local exception handling. Every process must have at least one thread of execution typically referred to as the main thread because that is the thread that executes the program's global main function (the entry point of the application) and subsequently instantiates any additional threads required by the main thread. The additional threads are usually called worker threads and any thread can instantiate its own worker threads. Unlike parent/child processes, thread's cannot "own" other threads; the threads are owned by the process. However, it is possible for worker threads to be controlled by other threads in the same process, so in that sense the controlling thread can be said to be a parent thread. When the main function returns, the main thread terminates, however any active threads within the process will continue executing, thus keeping the process "alive". In many cases this would be undesirable particularly if those threads attempt to access shared memory that is released by the main thread. So although there is no notion of ownership amongst threads, any controlling thread that must terminate before its workers have completed their tasks should signal its workers to terminate and then wait for them to terminate before terminating itself. Threads of execution within a process execute concurrently. All this means is that the operating system's task scheduler gives each thread a time-slice of the CPU to do some work, before saving the thread's state and moving onto the next thread (which may belong to another process entirely). Task-switching is so rapid that it can appear as though all threads are executing simultaneously, however that is only physically possible when the CPU has 2 or more cores available. Only one thread may execute upon any single core at any given moment. Multiple threads are typically used to maintain responsiveness. In a GUI environment, a time-consuming task would take up the entire time-slice of a process so it won't be able to respond to any messages on the message queue unless the task specifically checks the queue periodically. However, by using a worker thread to carry out the task, the controlling thread can remain responsive to messages. The message queue can also be used by threads to signal other threads, thus a controlling thread can respond to periodic progress reports from its worker threads if required. In this sense it can be said that the worker threads are background tasks, while the controlling thread is the foreground task.

Related questions

What is The difference between a Strike Team and a Task Force is?

what is the difference between a Strike Team and a Task Force


What task is performed between the pauses in typing?

background repagination(:


How can you tell what's running in background?

You can check what processes are running in the background by using system monitoring tools like Task Manager (Windows), Activity Monitor (Mac), or htop (Linux). These tools display a list of active processes, including both foreground and background tasks. Additionally, you can check for background processes in your system's settings or using command-line tools such as top or ps.


What is the difference between multitasking and combing task?

multitasking is doing more than two task or more. And combing task is two task


What is the Difference between task bar menu bar?

Wilfred


How do you get the hour glass on your computer to stop It run all the time?

This indicates a process is running in the foreground, potentially a virus or other runaway process. Processes can be 'swapped' use ctrl-alt-delete select Task manager or use alt-tab to swap processes into foreground from background processing. Kill the process ID from task manager or reove it from the startup processing if it persist. Do a complete virus scan, or boot into safe mode and review all startup or autoupdate programs.


What is the difference between work and task?

It would seem to me that the term "task" is more of an objective word in the sense that it takes work, to achieve a task


What is the difference between general and specific task oriented rubric?

The difference between generic and specific task oriented rubric is that whereas one is holistic, the other one is analytic. The generic oriented rubric is holistic while the specific task oriented is analytic.


What is the difference between task bar and title bar?

the task bar is said to be status bar if we are browsing something on the internet.


What is the difference between implements and equipment?

An implement is a tool or utensil that is needed perform a task. Equipment can be the tools or supplies needed for a task.


What are background task?

poop in your computer


What is the difference between a task force and a strike team?

Strike teams have similar resour