QuantumBadger / QuantumBadger/RedReader
Idle threads remain open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 527
- Avg merge
- 20d 10h
- Merged PRs (30d)
- 3
Description
In addition to threads which are started to perform a single task, RedReader uses seven persistent threads to handle queuing and network IO. These should be terminated when idle and only started when necessary (a dynamic thread pool).
RedditQueueProcessor (in PrioritizedDownloadQueue.java): 1 thread
RequestHandlerThread (in CacheManager.java): 1 thread
CacheDownloadThread (in CacheManager.java): 5 threads
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading PrioritizedDownloadQueue.java and CacheManager.java, focusing on RedditQueueProcessor, RequestHandlerThread, and CacheDownloadThread. Trace how these seven persistent threads are created, used, and stopped. Done means the threads are started only when needed and terminated when idle, while preserving queuing and network I/O behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100