Pergunta de entrevista da empresa Schilling Robotics

How do you deal with multiple threads in a program?