Discover the power of thread dumps in Android development. Learn what thread dumps are, how to capture them using commands like 'dumpsys thread' and 'jstack,' and uncover the insights they offer. Explore the effectiveness of 'fastThread,' a user-friendly tool that simplifies thread dump analysis, helping you identify performance issues, deadlocks, and more for a smoother... Continue Reading →
Parallel Sort
Everyone knows about what sorting is. There are so many computer algorithms that have emerged to support sorting. Some of the well-known algorithms are quick sort, heap sort, merge sort etc. All these sorting algorithms are working based on sequential sorting. Means, a single thread is used to perform the complete sorting operation. However, this... Continue Reading →
Chaos Engineering – Stackoverflow Error
In the series of chaos engineering articles, we have been learning to simulate various performance problems. In this post, let’s discuss how to simulate the ‘StackOverflow errors. StackOverflow error is a runtime error, which is thrown when a thread's stack size exceeds its allocated memory limit. Sample Program Here is a sample program from the... Continue Reading →
Chaos Engineering – Thread Leak
In the series of chaos engineering articles, we have been learning to simulate various performance problems. In this post, let's discuss how to simulate thread leaks. 'java.lang.OutOfMemoryError: unable to create new native thread' will be thrown when more threads are created than the memory capacity of the device. When this error is thrown, it will... Continue Reading →
Chaos Engineering – Deadlock
In the series of chaos engineering articles, we have been learning to simulate various performance problems. In this post, let's discuss how to simulate deadlock. What is Deadlock? Deadlock is prone in multi-threaded applications. The technical definition of a 'Deadlock' goes like this: Deadlock is a situation where a set of processes are blocked because... Continue Reading →