QuantumBadger / QuantumBadger/RedReader

Idle threads remain open

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.