# \[C++\] Multitasking Help

**URL:** <https://forum.kirupa.com/t/c-multitasking-help/80527>\
**Category:** random\
**Created:** [February 22, 2005, 9:29pm UTC](https://forum.kirupa.com/t/c-multitasking-help/80527 "2005-02-22T21:29:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeldarb](https://avatars.discourse-cdn.com/v4/letter/y/51bf81/32.png) [@Yeldarb](https://forum.kirupa.com/u/Yeldarb)\
**Post date:** [February 22, 2005, 9:29pm UTC](https://forum.kirupa.com/t/c-multitasking-help/80527/1 "2005-02-22T21:29:07Z")

</div>

I have hit a snag with C++.

What I’m trying to do is have a user input box, but while waiting for the user to input text, I want to run a function every 3 seconds or so. The problem is that the program gets to the _getline()_ and it just stops executing until the user hits enter.

How can I get around this? (As you can probably tell, I’m fairly new to C++)
