-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:None
-
Service Arch
-
Platforms 2018-04-09, Platforms 2018-04-23
There are a few optimizations along this theme. The primary goal is to dismiss most of the overhead of managing stuck threads. They should be removed from the iterated list of ThreadStates at the least and probably should be set to stop work cycles after the current task is finished.
This also means we should be checking "stuckness" either as a local thread state property set from indicator functions or by detecting overly long runtime for a given task. In either case, the changeover from normal thread to "detached" should be handled by the controller thread.