C Multithreading/MultiTasking

Hello,

A friend came to me and asked me for some help with a program and I need help with it myself. He wants to have a program loop and at the same time detect keyboard input. That way, the program will do something until it is interrupted by user input, then based on the input it will jump to something else. Any help is greatly appreciated and so is source code.

Thanks in advance

Comments

  • : Hello,
    :
    : A friend came to me and asked me for some help with a program and I
    : need help with it myself. He wants to have a program loop and at
    : the same time detect keyboard input. That way, the program will do
    : something until it is interrupted by user input, then based on the
    : input it will jump to something else. Any help is greatly
    : appreciated and so is source code.
    :
    : Thanks in advance

    Hi Lundin,

    Yes you have to make it multi threaded,but my question is do you want to
    make it with pure c or c++ or with MFC.

    I can help you with MFC.
    VC++ Developer || Sahajanand Laser Technology Ltd.
  • A detailed tutorial on POSIX Threads Programming for use with C language can be found here.

    https://computing.llnl.gov/tutorials/pthreads/
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories