belliottsmith commented on code in PR #4074:
URL: https://github.com/apache/cassandra/pull/4074#discussion_r2036701972


##########
src/java/org/apache/cassandra/concurrent/InfiniteLoopExecutor.java:
##########
@@ -53,12 +53,17 @@ public enum InternalState { SHUTTING_DOWN_NOW, TERMINATED }
     public enum SimulatorSafe { SAFE, UNSAFE }
 
     /**
-     * Does this loop always block on some external work provision that is 
going to be simulator-controlled, or does
-     * it loop periodically? If the latter, it may prevent simulation making 
progress between phases, and should be
-     * marked as a DAEMON process.
+     * Simulator Tag specifies the nature of the created thread:
+     * 
+     *   * JOB threads are short-lived, and simulation will wait for them to 
terminate before completing an enclosing Work unit

Review Comment:
   JOB threads are short-lived and simulation treats them as _sub tasks_ of the 
task that creates them, so that the strictly ordered property of the simulator 
ensures the thread terminates before the next task of its parent is scheduled.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to