@sponce following e-mail conversation, I attempted to make setting the number of threads and event slots more generic. Could you please check if that makes sense? In particular the number of event slots as I am not sure how to set it up correctly.
fyi @ahennequ