November 2017
Intermediate to advanced
398 pages
10h 14m
English
In a multi-threaded application, it is important to monitor a thread's life cycle to avoid possible race condition or monitor contention. You can periodically capture the stack traces of all currently alive threads. Further, we can also collect information such as CPU consumption from these threads. Again, as we have discussed in the earlier sections, this type of task is going to add processing overhead. So, make sure you consider this when evaluating the results. However, in order to get accurate results you need to repeat this process frequently.
For monitor contention, you can ...
Read now
Unlock full access