forkjoin procedure part 2
thread safety part 1