13 The simplest possible configuration for preemptive scheduling of single blocking algorithm.
17 from Configurables
import HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc, CPUCruncher, CPUCrunchSvc
23 blockingAlgosInFlight = 3
25 CPUCrunchSvc(shortCalib=
True)
27 whiteboard = HiveWhiteBoard(
28 "EventDataSvc", EventSlots=evtslots, OutputLevel=INFO)
30 slimeventloopmgr = HiveSlimEventLoopMgr(
31 SchedulerName=
"AvalancheSchedulerSvc", OutputLevel=INFO)
33 AvalancheSchedulerSvc(
34 ThreadPoolSize=algosInFlight,
35 PreemptiveBlockingTasks=
True,
36 MaxBlockingAlgosInFlight=blockingAlgosInFlight,
39 blockingAlg = CPUCruncher(
51 EventLoop=slimeventloopmgr,
53 MessageSvcType=
"InertMessageSvc",