use named mtx's and condition for interprocess communication