apache / apache/brpc

关于 signal_task 逻辑的一些疑问

Open
#2,667 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

control 调用 signal_task 的时机是创建新任务的时候,通知阻塞的线程来任务了,但是如果实际上没有阻塞的线程,都在工作,是不是就浪费了这次通知呢,那么越繁忙的状态,调用浪费的就越多,进而影响性能呢。

Contributor guide

Open the contributing guide

Research direction

The issue names control and signal_task but does not identify source files or tests. Start by tracing where control calls signal_task, then inspect the task and worker-thread scheduling path. Done means establishing whether notifications are wasted when all threads are busy and documenting or reproducing any measurable performance impact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.