views:

52

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: 

Take a look at this tutorial. It provides a fully worked out example of a NIO server implementation.

Ronald Wildenberg