|
|||||||||
2. Types, Operators, and Expressions 8. Type and Constant Definitions 34. Statically Defined Tracing for User Applications |
Adaptive Lock ProbesAdaptive locks enforce mutual exclusion to a critical section, and may be acquired in most contexts in the kernel. Because adaptive locks have few context restrictions, they comprise the vast majority of synchronization primitives in the Solaris kernel. These locks are adaptive in their behavior with respect to contention: when a thread attempts to acquire a held adaptive lock, it will determine if the owning thread is currently running on a CPU. If the owner is running on another CPU, the acquiring thread will spin. If the owner is not running, the acquiring thread will block. The four lockstat probes pertaining to adaptive locks are in Table 18-1. For each probe, arg0 contains a pointer to the kmutex_t structure that represents the adaptive lock. Table 18-1 Adaptive Lock Probes
|
||||||||
|