Expose resource-waiter choice to custom scheduling strategies
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading SimulationScheduler.SelectResourceWaiter, ISimulationSchedulingStrategyRuntimeHooks.ChooseResourceWaiter, and SimulationResourceWaiterInfo, then trace how built-in strategies record ResourceWinner decisions. Check existing scheduler tests for waiter selection and exact replay. Done means a public optional strategy hook can choose among waiters and the choice is recorded for replay.
索引モデルが issue の本文から書いたものです。
説明
SimulationScheduler.SelectResourceWaiter asks the strategy for a waiter through ISimulationSchedulingStrategyRuntimeHooks.ChooseResourceWaiter, which is internal, as is SimulationResourceWaiterInfo. A custom ISimulationSchedulingStrategy therefore always wakes the first pending waiter of a semaphore, monitor, or wait handle. A systematic explorer built on the public strategy interface cannot enumerate wake orders, which is where some lock- and semaphore-ordering bugs live.
Proposal. Add a public optional interface which a custom strategy may implement, for example:
public interface ISimulationResourceWaiterStrategy
{
int ChooseWaiter(IReadOnlyList<SimulationResourceWaiterInfo> waiters);
}
Make SimulationResourceWaiterInfo public, with the waiter's operation ID and the resource's identity. The scheduler would record the choice as a ResourceWinner decision, as it does for the built-in strategies, so exact replay is unchanged.
Consumer. Clog's WindowScheduleExplorer (ReubenBond/clog#365) enumerates scheduling choices inside concurrent windows by re-execution, with a preemption bound. Without this hook, Clog records FIFO wake order as a qualification boundary.
- 主要言語
- C#
- スター
- 0
- フォーク
- 0
- 平均マージ
- 2時間 32分
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ReubenBond/Clockwork のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ReubenBond/Clockwork#73 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
ReubenBond/Clockwork#70 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
ReubenBond/Clockwork#77 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
ReubenBond/Clockwork#76 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
ReubenBond/Clockwork#69 ·
メンテナーはふだん 1 日以内に返信
ReubenBond/Clockwork の issue をすべて見る
似ている issue
-
[Bug]: Threading.Analyzers 0.7.79 does not load on the .NET 10 SDK (CS9057), CHT rules silently offオープンbug regression threading
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
CryptoHives/Foundation#362 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: 本地歌词翻译显示错误オープンbug need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Fervent-Tempo/AF-Media-Bar#321 ·
-
a-corriger documentation
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
christian-raj/S-Aloha#345 ·
-
bug 要トリアージ
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQ対応中かも @spuddeh が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信