Real-time Multi-tasking in Software Synthesis for DSP Based Systems