The Linux Programming Interface
Process Creation and Program Execution in More Detail 597 printf("command flags term. user " "start time CPU elapsed\n"); printf ...
598 Chapter 28 When using the Version 3 option, the only difference in the operation of pro- cess accounting is in the format of ...
Process Creation and Program Execution in More Detail 599 Like fork(), a new process created with clone() is an almost exact dup ...
600 Chapter 28 With fork() and vfork(), we have no way to select the termination signal; it is always SIGCHLD. The remaining byt ...
Process Creation and Program Execution in More Detail 601 z Allocate a stack for use by the child r. z If CHILD_SIG is nonzero a ...
602 Chapter 28 /* If argc > 1, child shares file descriptor table with parent */ e flags = (argc > 1)? CLONE_FILES : 0; /* ...
Process Creation and Program Execution in More Detail 603 When we run the program with a command-line argument, we can see that ...
604 Chapter 28 Sharing file system–related information: CLONE_FS If the CLONE_FS flag is specified, then the parent and the chil ...
Process Creation and Program Execution in More Detail 605 Figure 28-1: A thread group containing four threads Each thread within ...
606 Chapter 28 for details, see the description of how POSIX threads and signals interact in Sec- tion 33.2. (The kernel handlin ...
Process Creation and Program Execution in More Detail 607 with the new thread’s ID. When the child terminates and ctid is cleare ...
608 Chapter 28 Making the child’s parent the same as the caller’s: CLONE_PARENT By default, when we create a new process with cl ...
Process Creation and Program Execution in More Detail 609 To implement containers, the kernel developers had to provide a layer ...
610 Chapter 28 __WALL (since Linux 2.4) Wait for all children, regardless of type (clone or nonclone). __WNOTHREAD (since Linux ...
Process Creation and Program Execution in More Detail 611 z The second statistic for each test shows the rate at which processes ...
612 Chapter 28 fork() or vfork() is followed by an exec(). This is illustrated by the final pair of data rows in Table 28-3, whe ...
Process Creation and Program Execution in More Detail 613 Process identifiers and credentials Process ID Yes No Parent process I ...
614 Chapter 28 Timers Interval timers Yes No setitimer(). Timers set by alarm() Yes No alarm(). POSIX timers No No timer_create( ...
Process Creation and Program Execution in More Detail 615 Miscellaneous Locale settings No Yes setlocale(). As part of C run-tim ...
616 Chapter 28 28.5 Summary..................................................................................................... ...
«
28
29
30
31
32
33
34
35
36
37
»
Free download pdf