Problem Multiple upstream servers are sending notifications to a load-balanced django app. If all the upstream servers are working correctly, […]
Tag: thread-safety
Task manager object for lazy initialization
Problem The Problem I am developing a Visual Studio extension for importing code from a server. Because of the way […]
Count of request per second, minute in java
Problem I want to count number of requests per second, minute. I want do it fast and thread-safe. I have […]
Add/Remove items thread-safely in List
Problem Recently I had to lock collections (of type List<T>) when items were added or removed. Because several collections were […]
Caching Color-Bitmaps as MemoryStreams
Problem I am in the need to cache Bitmap‘s in a memory-optimized way because the API I am building will […]
Thread-safe Bloom Filter in Java
Problem I have tried to implement a Bloom Filter in Java here. https://github.com/srirammanoj/skynet/tree/master/bloomfilter I just wanted to know if my […]
Is this a thread-safe implementation of background bitmap generation?
Problem For a game implementation, I have a very large overview map with multiple layers (namely base-map / units / […]
Singleton implementation of a database connection
Problem I have implemented as follows, a class applying singleton pattern to get a global single access to database. I […]
Thread-safe queue mechanism
Problem Is it my queue mechanism thread safe? I just wonder if I need concurrent collections. Need I lock Enqueue […]
Bank account concurrency problem Swift
Problem I tried to implement a simple BankAccount class to practice providing a solution to the common Bank Account transaction […]