The Linux Programming Interface
Threads: Thread Cancellation 677 call to pthread_cleanup_push() has an accompanying call to pthread_cleanup_pop(). This function ...
678 Chapter 32 Listing 32-2: Using cleanup handlers –––––––––––––––––––––––––––––––––––––––––––––––––– threads/thread_cleanup.c ...
Threads: Thread Cancellation 679 i s = pthread_create(&thr, NULL, threadFunc, NULL); if (s != 0) errExitEN(s, "pthread_creat ...
680 Chapter 32 32.6 Asynchronous Cancelability When a thread is made asynchronously cancelable (cancelability type PTHREAD_CANCE ...
Chapter 33: Threads: Further Details This chapter provides further details on various aspects of POSIX threads. We dis- cuss the ...
682 Chapter 33 great depth (perhaps because of recursion). Alternatively, an application may want to reduce the size of per-thre ...
Threads: Further Details 683 z A signal may be directed to either the process as a whole or to a specific thread. A signal is th ...
684 Chapter 33 More precisely, SUSv3 specifies that there is a separate alternate signal stack for each kernel scheduling entity ...
Threads: Further Details 685 As with pthread_kill(), sig specifies the signal to be sent, and thread identifies the target threa ...
686 Chapter 33 The operation of sigwait() is the same as sigwaitinfo(), except that: z instead of returning a siginfo_t structur ...
Threads: Further Details 687 Because of these problems, the usual recommendation is that the only use of fork() in a multithread ...
688 Chapter 33 handled entirely within the process by a user-space threading library. The kernel knows nothing about the existen ...
Threads: Further Details 689 The most significant disadvantage of the M:N model is complexity. The task of thread scheduling is ...
690 Chapter 33 z In addition to the threads created by the application, LinuxThreads creates an additional “manager” thread that ...
Threads: Further Details 691 LinuxThreads doesn’t support the notion of signals that are pending for a process as whole; only p ...
692 Chapter 33 Other problems with LinuxThreads In addition to the above deviations from SUSv3, the LinuxThreads implementation ...
Threads: Further Details 693 z improved performance for the kernel’s process termination code; and z extensions to the clone() s ...
694 Chapter 33 z In kernels prior to 2.6.12, interval timers created using setitimer() were not shared between the threads of a ...
Threads: Further Details 695 used when we run a program (here, we use the example of the standard ls program, which resides at / ...
696 Chapter 33 The range of kernel version numbers that can be specified in LD_ASSUME_KERNEL is subject to some limits. In sever ...
«
32
33
34
35
36
37
38
39
40
41
»
Free download pdf