working thread control with ipc sockets