Multithreaded Heartbeat Timer?

Hi,

I'm running on RedHat and I'm trying to do a "hack" job of a task in trying to make a simple command line app that runs a user-defined heartbeat (i.e. 400ms) in the background.

Everytime a heartbeat occurs, I want to simply push out the contents of a dequeue at one index only. When the next heartbeat happens, the same.

My problem is I don't know how to do a simple "worker thread" nor do I know of a way to keep a heartbeat running.

Any suggestions would be greatly appreciated.

If that's all you're doing, you don't need a seperate thread.
Topic archived. No new replies allowed.