|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_ScheduleProc(
    void (*proc) (),
    void *context,
    int fNewThread,
    int interval
    );
The Ns_ScheduleProc function schedules the procedure proc to be run every interval seconds, with context as an argument. The flag fNewThread determines whether proc runs in its own thread. Ns_ScheduleProc returns an integer id for use in the Ns_UnscheduleProc function.
Note that the newer Ns_ScheduleProcEx function provides a superset of the functionality in Ns_ScheduleProc.