I need to implement a server in which has only one selector(static); multiple threads try to register channel to the same static selector.
I tried to implement the server, but the problem is that the static selector works for first time i.e. registers the channel; but on next call to register different channel the thread gets hanged.
I am sure the above explanation is very vague. but please co-operate. Any pointers would be highly appreciated.