* John B?ckstrand <sandos at home.se> [2006-09-07 21:42:08]: > >You are of course welcome to suggest ways to decrease the number of > >threads because - as you have mentioned quite correctly - threads are > >indeed expensive. Unfortunately in most cases it's either "use a thread" > >or "write several hundred lines of code and not use a thread." > > I generally loathe threads, I've written several non-blocking C++ > applications which are single-threaded. They are both clean (basically > event-driven, althouh on a slightly low level), efficient and very > easily debuggable (no locking/synchronization problems). > > NIO in Java is a weird beast though, I can do this stuff easily in C++, > but NIO is hard to use. I also dont know if NIO is applicable to UDP?
One of the goal of the rewrite was to get rid of NIO related stuffs because of JVM bugs and bad support of it in freejvms. -- NextGen$. ---> In a world without fences nor walls - who needs windows and gates ? On peut ob??r aux lois en souhaitant qu'elles changent, comme on sert ? la guerre en souhaitant la paix. Merleau Ponty "L'?loge de la philosophie" -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20060907/aaa828e6/attachment.pgp>
