Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "Job" (child process thing) in Windows, and when to use it?

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

  1. What is a Job
  2. What should I know about these things?
  3. Why would (you|one) use them?
  4. What scenarios should they be used?
  5. What APIs are used.

I know the questions is a bit clumsy, please try and look past that. Thanks in advance.

I'm using WinXP by the way.

like image 939
CS. Avatar asked Sep 12 '09 11:09

CS.


1 Answers

A Job under Process Explorer refers to Win32 Jobs. More information about this feature can be found here.

So,

1. What is a Job? As above.

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

3. Why would (you|one) use them? They are interesting tools if my application/system fires up several processes. I can centralize certain tasks in one job and attach all processes to it. Like gracefully terminate all processes, manage their working sets, etc.

4. What scenarios should they be used? Never did anything worthed using them. But as above. In applications or complex systems that fire up several processes. Under Chrome, for instance (since this is where you are seeing a job), it is quite possible the job is managing each process that is fired when you open a new tab.

5. What APIs are used? The Win32 API

like image 58
Alexandre Bell Avatar answered Nov 15 '22 17:11

Alexandre Bell