Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 4-May-12 12:50pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900