+ 4
C++ multi threading
i want to write simple input, but have timer. i know i can solve it with multi threading. but it seems like its still waiting the time. https://code.sololearn.com/c9ryPzXnKOX7/?ref=app after you run it, you will know what the problem is. compile command: c++ timer_input.cpp -lpthread -o timer_input
1 ответ
+ 2
of course!!, we need to create new thread again for the input
https://code.sololearn.com/cBK0evSpYsNG/?ref=app