|
(In reply to Jozef Slezák from comment #0)
> Stop instantiating new thread for echo after switch connected. Rather
> prepare threadpool while starting OFP and reuse threads.
>
> @Override
> public void onSwitchIdleEvent(final SwitchIdleEvent notification) {
> new Thread(new Runnable() {
So, when instantiating this new thread pool, what should be it's behaviour? Should it have fixed size or not limit and to just reuse previous threads when available? Also, should it automatically shutdown threads after timeout (ex. 60 seconds)?
Right now, I came up with fixed thread pool with limit of # of available processors + 1, without any automatic shutdown after timeout.
|