Mozilla background task что это
Перейти к содержимому

Mozilla background task что это

  • автор:

Что такое backgroundTaskHost.exe? Это безопасно или вирус? Как удалить или исправить это

backgroundTaskHost.exe это исполняемый файл, который является частью Windows 8 Consumer Preview ISO-образы разработанный Microsoft, Версия программного обеспечения для Windows: 1.0.0.0 обычно 9216 в байтах, но у вас может отличаться версия.

Расширение .exe имени файла отображает исполняемый файл. В некоторых случаях исполняемые файлы могут повредить ваш компьютер. Пожалуйста, прочитайте следующее, чтобы решить для себя, является ли backgroundTaskHost.exe Файл на вашем компьютере — это вирус или вредоносная программа, которую вы должны удалить, или, если это действительно допустимый файл операционной системы Windows или надежное приложение.

BackgroundTaskHost.exe безопасный или это вирус или вредоносное ПО?

Первое, что поможет вам определить, является ли тот или иной файл законным процессом Windows или вирусом, это местоположение самого исполняемого файла. Например, для backgroundTaskHost.exe его путь будет примерно таким: C: \ Program Files \ Microsoft \ Windows 8 Consumer Preview ISO images \ backgroundTaskHost.exe

Чтобы определить его путь, откройте диспетчер задач, перейдите в «Просмотр» -> «Выбрать столбцы» и выберите «Имя пути к изображению», чтобы добавить столбец местоположения в диспетчер задач. Если вы обнаружите здесь подозрительный каталог, возможно, стоит дополнительно изучить этот процесс.

Еще один инструмент, который иногда может помочь вам обнаружить плохие процессы, — это Microsoft Process Explorer. Запустите программу (не требует установки) и активируйте «Проверить легенды» в разделе «Параметры». Теперь перейдите в View -> Select Columns и добавьте «Verified Signer» в качестве одного из столбцов.

Если статус процесса «Проверенная подписывающая сторона» указан как «Невозможно проверить», вам следует взглянуть на процесс. Не все хорошие процессы Windows имеют метку проверенной подписи, но ни один из плохих.

  • Имя: backgroundTaskHost.exe
  • Программного обеспечения: Windows 8 Consumer Preview ISO-образы
  • Издатель: Microsoft
  • Ожидаемое местоположение: C: \ Program Files \ Microsoft \ Windows ISO-образы предварительного просмотра 8 \ подпапке
  • Ожидаемый полный путь: C: \ Program Files \ Microsoft \ Windows. Предварительный просмотр образов 8 ISO-образов \ backgroundTaskHost.exe.
  • SHA1: 190CCDCBD92FDF67E8B3F9177E8B630692D2A1D2
  • SHA256:
  • MD5: 1B75A899A9EFB76DD7D616CC4594345B
  • Известно, что до 9216 размер байт в большинстве Windows;

Если у вас возникли какие-либо трудности с этим исполняемым файлом, перед удалением backgroundTaskHost.exe необходимо определить, заслуживает ли он доверия. Для этого найдите этот процесс в диспетчере задач.

Найти его местоположение и сравнить размер и т. Д. С приведенными выше фактами

Если вы подозреваете, что можете быть заражены вирусом, вы должны немедленно попытаться это исправить. Чтобы удалить вирус backgroundTaskHost.exe, необходимо скачайте и установите приложение полной безопасности, как это, Обратите внимание, что не все инструменты могут обнаружить все типы вредоносных программ, поэтому вам может потребоваться попробовать несколько вариантов, прежде чем вы добьетесь успеха.

Кроме того, функциональность вируса может сама влиять на удаление backgroundTaskHost.exe. В этом случае вы должны включить Безопасный режим с загрузкой сетевых драйверов — безопасная среда, которая отключает большинство процессов и загружает только самые необходимые службы и драйверы. Когда вы можете запустить программу безопасности и полный анализ системы.

Могу ли я удалить или удалить backgroundTaskHost.exe?

Не следует удалять безопасный исполняемый файл без уважительной причины, так как это может повлиять на производительность любых связанных программ, использующих этот файл. Не забывайте регулярно обновлять программное обеспечение и программы, чтобы избежать будущих проблем, вызванных поврежденными файлами. Что касается проблем с функциональностью программного обеспечения, проверяйте обновления драйверов и программного обеспечения чаще, чтобы избежать или вообще не возникало таких проблем.

backgroundTaskHost.exe — что это за процесс? (Windows 10)

Приветствую. backgroundTaskHost.exe — процесс, который может появляться в диспетчере на секунду и при этом грузить процессор. Один юзер отключил службу Изоляция ключей CNG, после чего процесс не появлялся. Насколько безопасно отключать службу — неизвестно.

Пытаемся разобраться

Сперва о главном: огорчу вас, но точного ответа что делает процесс backgroundTaskHost.exe — мне не удалось найти. Анализируя информацию в интернете, пришел к выводу, что скорее всего отвечает за работу метро-приложений.

Чаще всего ошибки с упоминанием backgroundTaskHost.exe происходят именно по причине глючного приложения, которое работает в фоне.

Был найден совет — перейти в раздел Параметры > Обновление и безопасность > Центр обновлений Windows > Дополнительные параметры > выбрать способ доставки — обновления из нескольких мест:

Попробуйте, вдруг поможет.

Другой пользователь написал что процесс относится к фоновой работе приложений. Нужно зайти в Настройки > Конфиденциальность > Фоновые приложения > выключить. Кажется вот эта настройка:

Далее выполнить перезагрузку. Данная настройка отключит работу фоновых приложений, вероятно имеется ввиду именно метро-приложения. В результате приложения будут работать, но только если вы их откроете.

Причиной загрузки еще может быть какое-то приложение, например у одного пользователя нагрузка была из-за Яндекс Маркет.

Нашел сообщение, где говорится что все проблемы с backgroundTaskHost.exe — результат какого-то глючного метро-приложения:

Самый радикальный способ утихомирить backgroundTaskHost.exe

  1. Сперва создаете контрольную точку восстановления.
  2. Качаете и устанавливаете утилиту Unlocker для переименования файла backgroundTaskHost.exe. При установке будьте внимательны — хочет также установится какой-то дельта тулбар.
  3. В диспетчере нажимаете правой кнопкой по процессу — выбираете открыть месторасположение. Откроется папка с выделенным файлом.
  4. Нажимаете правой кнопкой по файлу > выбираете пункт Unlocker > переименовать. Переименовывать советую так, чтобы осталось оригинальное имя. Советую просто добавить к имени файла приставку _off.
  5. Unlocker может потребовать перезагрузку.

Это радикальный метод, последствия отключения процесса — мне неизвестны. Windows с высокой вероятностью работать будет, а вот метро-приложения — не знаю. Поэтому точку восстановления для такого эксперимента делать обязательно!

Background Task Mode¶

Gecko supports running privileged JavaScript in a special headless “background task” mode. Background task mode is intended to be used for periodic maintenance tasks. The first consumer will be checking for updates, even when Firefox is not running.

Support for background task mode is gated on the build flag MOZ_BACKGROUNDTASKS .

Adding a new background task¶

Background tasks are invoked with —backgroundtask TASKNAME . Tasks must be packaged at build time; the background task runtime looks for regular JSM modules in the following locations (in order):

To add a new background task, add to your moz.build file a stanza like:

Implementing a background task¶

In BackgroundTask_TASKNAME.sys.mjs , define a function runBackgroundTask that returns a Promise . runBackgroundTask will be awaited and the integer value it resolves to will be used as the exit code of the —backgroundtask TASKNAME invocation. Optionally, runBackgroundTask can take an nsICommandLine instance as a parameter. For example:

When invoked like —backgroundtask TASKNAME EXITCODE , this task will simply complete with the exit code given on the command line.

Task module can optionally export an integer value called backgroundTaskTimeoutSec , which will control how long the task can run before it times out. If no value is specified, the timeout value stored in the pref toolkit.backgroundtasks.defaultTimeoutSec will be used.

Special exit codes¶

The exit codes 2-4 have special meaning:

Exit code 2 ( EXIT_CODE.NOT_FOUND ) means the background task with the given TASKNAME was not found or could not be loaded.

Exit code 3 ( EXIT_CODE.EXCEPTION ) means the background task invocation rejected with an exception.

Exit code 4 ( EXIT_CODE.TIMEOUT ) means that the background task timed out before it could complete.

See EXIT_CODE for details.

Test-only background tasks¶

There is special support for test-only background tasks. Add to your moz.build file a stanza like:

Debugging background tasks¶

Background task mode supports using the JavaScript debugger and the Firefox Devtools and Browser Toolbox. When invoked with the command line parameters —jsdebugger (and optionally —wait-for-jsdebugger ), the background task framework will launch a Browser Toolbox, connect to the background task, and pause execution at the first line of the task implementation. The Browser Toolbox is launched with a temporary profile (sibling to the ephemeral temporary profile the background task itself creates.) The Browser Toolbox profile’s preferences are copied from the default browsing profile, allowing to configure devtools preferences. (The —start-debugger-server command line option is also recognized; see the output of firefox —backgroundtask success —attach-console —help for details.)

Invoking background tasks¶

Use BackgroundTasksRunner::RunInDetachedProcess is a helper to open a new background process within Gecko. It automatically manages the configuration 1) to let the new process outlive the launching process and 2) to escape the arguments properly. The function is safe to be called in a non-main process.

Existing background tasks¶

Removes the child directory with the given name and/or child directories with the given postfix, all in the given parent directory. It’s recommended to run it via the corresponding helper function BackgroundTasksRunner::RemoveDirectoryInDetachedProcess .

Tests can use toolkit.background_tasks.remove_directory.testing.sleep_ms to see whether a longstanding task can finish the work even after the launching process is closed.

The background task mode runtime environment¶

Most background tasks run in ephemeral temporary profiles¶

Background tasks are intended for periodic maintenance tasks, especially global/per-installation maintenance tasks. To allow background tasks to run at the same time as regular, headed Firefox browsing sessions, by default they run with an ephemeral temporary profile. This ephemeral profile is deleted when the background task main process exits. Every background task applies the preferences in backgroundtasks/defaults/backgroundtasks.js , but any additional preference configuration must be handled by the individual task. Over time, we anticipate a small library of background task functionality to grow to make it easier to lock and read specific prefs from the default browsing profile, to declare per-installation prefs, etc.

It is possible to run background tasks in non-emphemeral, i.e., persistent, profiles. See Bug 1775132 for details.

Background tasks limit the XPCOM instance graph by default¶

The technical mechanism that keeps background tasks “lightweight” is very simple. XPCOM declares a number of observer notifications for loosely coupling components via the observer service. Some of those observer notifications are declared as category notifications which allow consumers to register themselves in static components.conf registration files (or in now deprecated chrome.manifest files). In background task mode, category notifications are not registered by default.

For Firefox in particular, this means that BrowserContentHandler.sys.mjs is not registered as a command-line-handler. This means that BrowserGlue.sys.mjs is not loaded, and this short circuits regular headed browsing startup.

See the documentation for defining static components for how to change this default behaviour, and Bug 1675848 for details of the implementation.

Most background tasks do not process updates¶

To prevent unexpected interactions between background tasks and the Firefox runtime lifecycle, such as those uncovered by Bug 1736373, most background tasks do not process application updates. The startup process decides whether to process updates in ::ShouldProcessUpdates and the predicate that determines whether a particular background task does process updates is BackgroundTasks::IsUpdatingTaskName .

Background tasks that are launched at shutdown (and that are not updating) do not prevent Firefox from updating. However, this can result in Firefox updating out from underneath a running background task: see this summary of the issue. Generally, background tasks should be minimal and short-lived and are unlikely to launch additional child subprocesses after startup, so they should not witness this issue, but it is still possible. See the diagram below visualizing process lifetimes.

Most background tasks produce console output¶

Background tasks are usually scheduled in situations where their output is not user-visible: by the Windows Task Scheduler, at shutdown, etc. Therefore, it’s usually safe to always produce console output. But some tasks, especially shutdown tasks executed during developer builds, can “pollute” the console even after the Firefox main process has exited. To avoid this, background tasks can opt-in to producing no output; the predicate that determines whether a particular background task does produce output is BackgroundTasks::IsNoOutputTaskName . This predicate can be overridden by providing the —attach-console command line flag or by setting the MOZ_BACKGROUNDTASKS_IGNORE_NO_OUTPUT environment variable to a non-empty value.

The pingsender background task opts to produce no output: see Bug 1736623.

Mozilla background task что это

Gecko supports running privileged JavaScript in a special headless “background task” mode. Background task mode is intended to be used for periodic maintenance tasks. The first consumer will be checking for updates, even when Firefox is not running.

Support for background task mode is gated on the build flag MOZ_BACKGROUNDTASKS .

Adding a new background task¶

Background tasks are invoked with —backgroundtask TASKNAME . Tasks must be packaged at build time; the background task runtime looks for regular JSM modules in the following locations (in order):

To add a new background task, add to your moz.build file a stanza like:

Implementing a background task¶

In BackgroundTask_TASKNAME.jsm , define a function runBackgroundTask that returns a Promise . runBackgroundTask will be awaited and the integer value it resolves to will be used as the exit code of the —backgroundtask TASKNAME invocation. Optionally, runBackgroundTask can take an nsICommandLine instance as a parameter. For example:

When invoked like —backgroundtask TASKNAME EXITCODE , this task will simply complete with the exit code given on the command line.

Task module can optionally export an integer value called backgroundTaskTimeoutSec , which will control how long the task can run before it times out. If no value is specified, the timeout value stored in the pref toolkit.backgroundtasks.defaultTimeoutSec will be used.

Special exit codes¶

The exit codes 2-4 have special meaning:

Exit code 2 ( EXIT_CODE.NOT_FOUND ) means the background task with the given TASKNAME was not found or could not be loaded.

Exit code 3 ( EXIT_CODE.EXCEPTION ) means the background task invocation rejected with an exception.

Exit code 4 ( EXIT_CODE.TIMEOUT ) means that the background task timed out before it could complete.

Test-only background tasks¶

There is special support for test-only background tasks. Add to your moz.build file a stanza like:

Debugging background tasks¶

Background task mode supports using the JavaScript debugger and the Firefox Devtools and Browser Toolbox. When invoked with the command line parameters —jsdebugger (and optionally —wait-for-jsdebugger ), the background task framework will launch a Browser Toolbox, connect to the background task, and pause execution at the first line of the task implementation. The Browser Toolbox is launched with a temporary profile (located inside the transient temporary profile the background task itself creates, for historical reasons.) The Browser Toolbox profile’s preferences are copied from the default browsing profile, allowing to configure devtools preferences. (The —start-debugger-server command line option is also recognized; see the output of firefox —backgroundtask success —attach-console —help for details.)

The background task mode runtime environment¶

Background tasks run in temporary profiles¶

Background tasks are intended for periodic maintenance tasks, especially global/per-installation maintenance tasks. To allow background tasks to run at the same time as regular, headed Firefox browsing sessions, they run with a temporary profile. This temporary profile is deleted when the background task main process exits. Every background task applies the preferences in backgroundtasks/defaults/backgroundtasks.js , but any additional preference configuration must be handled by the individual task. Over time, we anticipate a small library of background task functionality to grow to make it easier to lock and read specific prefs from the default browsing profile, to declare per-installation prefs, etc.

Background tasks limit the XPCOM instance graph by default¶

The technical mechanism that keeps background tasks “lightweight” is very simple. XPCOM declares a number of observer notifications for loosely coupling components via the observer service. Some of those observer notifications are declared as category notifications which allow consumers to register themselves in static components.conf registration files (or in now deprecated chrome.manifest files). In background task mode, category notifications are not registered by default.

For Firefox in particular, this means that BrowserContentHandler.jsm is not registered as a command-line-handler. This means that BrowserGlue.jsm is not loaded, and this short circuits regular headed browsing startup.

See the documentation for defining static components for how to change this default behaviour, and Bug 1675848 for details of the implementation.

Most background tasks do not process updates¶

To prevent unexpected interactions between background tasks and the Firefox runtime lifecycle, such as those uncovered by Bug 1736373, most background tasks do not process application updates. The startup process decides whether to process updates in ::ShouldProcessUpdates and the predicate that determines whether a particular background task does process updates is BackgroundTasks::IsUpdatingTaskName .

Background tasks that are launched at shutdown (and that are not updating) do not prevent Firefox from updating. However, this can result in Firefox updating out from underneath a running background task: see this summary of the issue. Generally, background tasks should be minimal and short-lived and are unlikely to launch additional child subprocesses after startup, so they should not witness this issue, but it is still possible. See the diagram below visualizing process lifetimes.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *