Suspend & resume process

Hey all,
I’m running 3 processes ( a, b & c), I want process c to suspend process a & b when some signal is deasserted then resume the, back when that signal is de assterted. but when i resume, the two process a & b get resumed where they were suspended, I want to resume them in different time.

In reply to abdelaali_21:
I think your question needs a lot more details, but from what you wrote, this should get you started:

fork
  process a,b;
   begin
     a = process::self();
     ...
   end
   begin
     b = process::self();
     ...
   end
   begin
      wait (!signal);
      a.suspend();
      b.suspend();
      wait (signal);
      #some_delay;
      a.resume();
      b.resume();
   end
join