Problem I have two python scripts (or one bash script + one python script) which are working independently from another, […]
Tag: locking
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 […]
Redis lock implementation
Problem Considering I’m not implementing distributed lock mechanism, is this code correct and clear? class RedisLock class NotAcquired < StandardError; […]
Getting a decryptor object
Problem I need to lock on my AesManaged instance _Aes to call CreateDecryptor() however the CreateDecryptor() method is not thread […]
Configurable synchronization approach in Java
Problem I am interested in the community opinion about the following approach for the synchronization. Generally it is based on […]
Monitoring progress in Parallel.ForEach every minute
Problem I’m using Parallel.ForEach to download 500K URLs and I want to monitor the number of URLs that have been […]
Snoozy: A lazy reevaluation upon get
Problem I would appreciate critique and comments in regards of thread-safety on a basic type I’m trying to create. In […]
Using goto to wait on the result of a database query to change
Problem This is a small personal project where most non-sensitive data is distributed to some globally hosted CDN servers, which […]
Good approach to raise an exception
Problem I have class House and module Lockable. Locking and unlocking House should reflect the real world, so you can’t […]
Implementing Multi Producer Multi Consumer Simple Thread Safe Class
Problem I am learning C# and in the process I am trying to implement a multi producer consumer thread safe […]