The real way to do this is to get user space networking.
Also event-based protocols with deterministic physics.
Last but not least, you need to use a language that can atomically share memory between threads; C (with Arrays of 64 byte Structs) or Java.