Thread: help

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    help

    how can make to instructions simultaneously run example:

    in main() how can i make two functions example movescreen() and moveship run at the same time...

    thanks )

  2. #2
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094

  3. #3
    Registered User SKeane's Avatar
    Join Date
    Sep 2006
    Location
    England
    Posts
    234
    google pthread

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If
    movescreen();
    moveship();

    take less than your screen refresh time, how would the user ever know?

    Get thread programming wrong and you'll have one hell of a bug-fest on your hands.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed