TRVM, the Tiny RISC Virtual Machine, is a tiny (less then 50k of code) virtual machine. It has support for multitasking, with the TRVM machine code. It's fairly easy to learn, with less than 20 operators. And it's easy to integrate into larger programs.