Zolookas 0 Newbie Poster

Hi, i am quite new to C++ and I am making quite complicated linux app: i need it to show wheather usb device (phone) is connected. I have a procedure which would check if phone is connected, but i need to somehow run in background to constantly (lets say every 5 seconds) check if phone has been connected or disconnected and still let program to work normally. So i suppose i need to do some multitasking. What would you recommend to read about multitasking (as you see i do not need to do very serious things)? Or it is better way to do this type of checking?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.