Basically you need to setup an interrupt timer, which fires every N intervalls. In this you save the CPU state, like registers and flags, load the new set from a different task and let it continue. This is the easy part of a scheduler. :)
If you want to really do multiprocessing, in full detail, then you should really look into the sources for i.e. Linux kernel.