What is Work (child procedure) on Windows and when to use it?

Using Process Explorer ( procexp.exe ), especially with Google Chrome, child processes are called a job. Same thing with Internet Explorer 8, but I noticed it first with Chrome.

  • What is work.
  • What should I know about these things?
  • Why would you (you) use them?
  • What scripts should they use?
  • What APIs are used.

I know that the questions are a little awkward, please try and look into the past. Thanks in advance.

I am using WinXP, by the way.

+7
windows process winapi task
source share
2 answers

Ad 1/2. Work is a process with a given job object . They are used to manage process groups. A single task object can have several processes, but a process can be assigned to only one task object. You can also set several restrictions for tasks documented here .

Announcement 5. CreateJobObject , AssignProcessToJobObject , SetInformationJobObject , TerminateJobObject and a few others listed here .

+5
source share

The job in Process Explorer relates to Win32 Jobs . More information about this feature can be found here .

So,

1. What is work? As mentioned above.

2. What should I know about these things? If a job fails or becomes unstable, all processes it processes will become unstable or immediately crash.

3. Why (do you) use them? These are interesting tools if my application / system starts several processes. I can centralize certain tasks in one job and attach all the processes to it. How to gracefully complete all processes, manage their work sets, etc.

4. What scenarios should be used? Never did anything using them. But as above. In applications or complex systems that run multiple processes. For example, in Chrome (for example, where you see a task), it is possible that the task controls every process that starts when a new tab is opened.

5. What APIs are used? Win32 API

+7
source share

All Articles