Android

Coroutines in Kotlin

In modern applications, especially those involving network requests, file I/O, or complex computations, handling asynchronous operations is essential to maintain responsiveness and performance. Traditionally, developers have used callbacks, threads, futures, and AsyncTask in Android to manage asynchronous tasks. However, these methods...

by Hemant Kumar
Tag: threads
07-Jun-2024

Grails

Groovy Goodness – ReadWriteLocks

We often use synchronization. Imagine you have a use case in which there is some resource upon which writing is not done as much as compared to reading. So multiple threads should be able to read concurrently same resource without any problems. But if a single thread wants to write to the resource, for that all new threads for reading...

by Parampreet Singh
Tag: threads
02-Dec-2014