C++ multi threading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

10th Feb 2018, 1:19 PM
Kevin AS
Kevin AS - avatar
1 Answer
+ 2
of course!!, we need to create new thread again for the input https://code.sololearn.com/cBK0evSpYsNG/?ref=app
10th Feb 2018, 1:39 PM
Kevin AS
Kevin AS - avatar