Datagrams and threads in Linux using POSIX standards