Thread: Timer Multithreading in Microsoft C

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Timer Multithreading in Microsoft C

    Hi C Gurus,
    I am a database person on UNIX and programmed in a number 4 gl, but new to Microsoft c - I need to understand timers, multiple threads if any one have simple examples of codes of:
    thread that sleeps for a set time, and upon waking, forces the main running program to exit/ examples of WaitForSingleObject.

    Thanks.

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    What the hell is Microsoft C?

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Timer Multithreading in Microsoft C

    Hi,
    Thanks for the reply perhaps I was not clear - I was referring to the Command Line Microsoft c compiler (cl) part of visual Studio 2008 as "microsoft c"

  4. #4

  5. #5
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    My Website

    "Circular logic is good because it is."

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Timer Multithreading in Microsoft C

    Sorry - I don't understand the meaning of your picture - are you saying refer to the
    book if so then this book is so old and only available from specialist shop.

    What I am looking for is a sample code to set a time from a main program
    when the time is up them it should interrupt the main program (processeing user input input rquests)

  7. #7
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    I think the point is you need to consult microsoft's documentation, which does exist and is available on line.

    If you have trouble getting the commands to work, then you can post your code and someone may help you with it, but you do need to make some effort to do some research of your own. Or else try:

    Rent A Coder: How Software Gets Done -- Home of the worlds' largest number of completed software projects
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. SIGALRM and timer
    By nkhambal in forum C Programming
    Replies: 1
    Last Post: 06-30-2008, 12:23 AM
  3. Apps that act "differently" in XP SP2
    By Stan100 in forum Tech Board
    Replies: 6
    Last Post: 08-16-2004, 10:38 PM
  4. Retaliation towards witch king\microsoft
    By Koshare in forum Linux Programming
    Replies: 7
    Last Post: 10-19-2001, 04:54 AM