Thread: X requests per second

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    41

    N requests per second

    Hello All,

    Can anyone give me some intro infos on how I could:

    Execute a certain task on a N times per second ?? I would like to run a task at a defined number (N) of times per second.

    Any help ??

    Thanks,
    Last edited by groorj; 02-03-2006 at 03:07 PM.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    The answer to this is dependent upon what OS you are using. Basically, you could set up a timer to do this. If you want the event to fire 5 times every second, then set the timer to expire after 200ms.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    41
    I'm using an RH Linux. Could you point me some code ?

    Thanks a lot,

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Do a search for ualarm() or setitimer().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Timing HTTP GET requests
    By traef06 in forum C Programming
    Replies: 9
    Last Post: 09-08-2008, 09:33 PM
  2. viewing HTTP requests
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-09-2007, 06:44 PM
  3. Intercepting I/O requests
    By Perspective in forum Linux Programming
    Replies: 2
    Last Post: 10-25-2006, 05:45 PM
  4. Writing all HTTP requests from a website to a log file
    By goomyman in forum C# Programming
    Replies: 1
    Last Post: 07-29-2005, 09:18 AM
  5. Dropping ICMP Requests?
    By IEatGreyFoxes in forum Networking/Device Communication
    Replies: 3
    Last Post: 05-20-2004, 03:11 AM