Skip to main content

All Questions

Filter by
Sorted by
Tagged with
5 votes
2 answers
2k views

Resource caching in Java with soft references

I'd like to cache some heavy resources locally. The goal of this implementation is to have be able to load resources for an unknown amount of time and then keep them in memory and finally evict them ...
Olivier Grégoire's user avatar
0 votes
1 answer
444 views

Command line multipart or single file downloader

I am looking for a code review for this multipart or single file chunk downloader using threading and queues. downloader.py ...
Ciasto piekarz's user avatar
4 votes
1 answer
7k views

Unit test an ExecutorService in a deamon

To execute tasks sequentially with a timeout I use ExecutorService.submit() and Future.get(). As I don't want to block calling ...
Philippe Blayo's user avatar
4 votes
2 answers
5k views

Robust logging solution to file on disk from multiple threads on serverside code

I have implemented a socket listener that runs on my Linux Ubuntu server accepting connections and then starting up a new thread to listen on those connections (classic socket listener approach). ...
dreza's user avatar
  • 6,527
8 votes
2 answers
1k views

Multithreaded log test

I'm writing a logger extension that allows multiple threads to log a process, and then dump that log to the main log in one atomic operation. The point of it is to make the logs easier to read when ...
Michael K's user avatar
  • 2,909