Re: triggering an event every 5 minutes in C

From: David Schwartz (davids_at_webmaster.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 13:27:01 -0800


"Jon Zero" <jzero@nospam.net> wrote in message
news:pan.2005.03.15.17.04.30.947909@nospam.net...

>I am trying to figure out what the best way to have my program do
> something (change the value of a variable) every x number of minutes. Can
> somebody give me a pointer in the right direction? I am writing in C in
> a linux environment.

    It depends a lot upon the whole structure of the rest of your program.
For example, if it's multi-threaded, the answer is totally different. If
it's an event loop, the answer is totally different.

    DS



Relevant Pages

  • triggering an event every 5 minutes in C
    ... somebody give me a pointer in the right direction? ... I am writing in C in ... a linux environment. ... Jon ...
    (comp.unix.programmer)
  • Re: Memory management and allocation
    ... > As I'm writing a piece of code that basically acts as a server and ... > memory management is a topic that is quite crucial. ... Or can I just allocate the variable ... Nor is it usually necessary to set the pointer to ...
    (comp.lang.c)
  • Re: FIFO File writing
    ... > To write a new record, read the 0th, form the pointer, seek there ... > binary operations, i.e. this is a binary file. ... > The file is vulnerable between writing the new record and writing ... > by first writing an invalid marker to the index record, ...
    (comp.programming)
  • Re: gdb not catching out-of-bounds pointer
    ... is also not defined by the C-standard, IOW: writing code in anything ... provided the library writer knows what the compiler writer guarantees ... etc.) that don't point into the same array than I would about the sort ... of pointer aliasing issue that started this sub-thread. ...
    (comp.unix.programmer)
  • Re: FIFO File writing
    ... how to implement a file logging system? ... To write a new record, read the 0th, form the pointer, seek there ... The file is vulnerable between writing the new record and writing ... by first writing an invalid marker to the index record, ...
    (comp.programming)