views:

147

answers:

1

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.

A: 

Could you try to explain where the static requirement comes from? static is typically a Bad Idea, except in specialized circumstances.

jasonnerothin