Embedded operating system with multi-task and POSIX compatibility