Question 1: Why when a fiber is exiting, and after it quited, fiber scheduler will sched.reschedule
this quited fiber immediately?
it will going to quit, right? reschedule is meaningless? it don’t know itself will exit? right?
following is some example log:
sched.resume 11824863278048 thread=0x7e079774b740:? fiber=0x7e0797742f00:main fiber=0x7e0797742d20:fiber-each1
print: reach spawn end for fiber-each1
sched.reschedule 11824863287426 thread=0x7e079774b740:? fiber=0x7e0797742d20:fiber-each1
sched.resume 11824863291184 thread=0x7e079774b740:? fiber=0x7e0797742d20:fiber-each1 fiber=0x7e0797742c80:fiber-each2
print: reach spawn end for fiber-each2
sched.reschedule 11824863297325 thread=0x7e079774b740:? fiber=0x7e0797742c80:fiber-each2
Question 2: Following info is print but without any context knowledge about , i don’t really understand what its does, is there any doc explain on this?
I even don’t know where is the fiber=0x7e0797742e60:Stack pool collector
spawn from, because no trace log output for where it spawn from.
but, anyway, i consider it doesn’t affect my understanding of the fibers flow, so print those log info is necessary for debug scheduler?
sched.resume 11824735945636 thread=0x7e079774b740:? fiber=0x7e0797742f00:main fiber=0x7e0797742e60:Stack pool collector
sched.sleep 11824735950125 thread=0x7e079774b740:? fiber=0x7e0797742e60:Stack pool collector for=5000000000
sched.resume 11824735978759 thread=0x7e079774b740:? fiber=0x7e0797742e60:Stack pool collector fiber=0x7e0797742dc0:Signal Loop
sched.reschedule 11824735998236 thread=0x7e079774b740:? fiber=0x7e0797742dc0:Signal Loop
If need source code for reproduce, i will added it.
Thanks