share memory: merge output and job share memory
use semphore in share memory