multi threading and dispatch table structure