mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-16 00:26:43 +00:00
[bugfix] preempt
This commit is contained in:
@@ -23,7 +23,7 @@ func (scheduler *SchedulerFCFS) Start() {
|
||||
|
||||
go func() {
|
||||
for {
|
||||
log.Info("Scheduling")
|
||||
log.Debug("Scheduling")
|
||||
time.Sleep(time.Second * 5)
|
||||
scheduler.scheduling.Lock()
|
||||
scheduler.mu.Lock()
|
||||
|
||||
@@ -143,6 +143,7 @@ func (scheduler *SchedulerPriority) Start() {
|
||||
if after != before {
|
||||
break
|
||||
}
|
||||
log.Info("before=", before, " after=", after)
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user