2 functions at once

This is a discussion on 2 functions at once within the C++ Programming forums, part of the General Programming Boards category; Is it possible to execute 2 functions at once? If so how or what do I search for?...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    75

    2 functions at once

    Is it possible to execute 2 functions at once?
    If so how or what do I search for?

  2. #2
    Open to suggestions Brighteyes's Avatar
    Join Date
    Mar 2003
    Posts
    204
    It's possible, but only if you fork another process or use multiple threads.
    p.s. What the alphabet would look like without q and r.

  3. #3
    Funniest man in this seat minesweeper's Avatar
    Join Date
    Mar 2002
    Posts
    801
    Well you can run multiple threads of execution if that's what you mean. Do a search on MSDN for threads or maybe _beginthread(). However you must realise that what this does in reality is cause windows to chop and change between the two threads, it's not technically doing two things at the same time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Void Functions Help
    By bethanne41 in forum C++ Programming
    Replies: 1
    Last Post: 05-09-2005, 06:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 12:50 PM
  3. calling functions within functions
    By edd1986 in forum C Programming
    Replies: 3
    Last Post: 03-29-2005, 03:35 AM
  4. Factory Functions HOWTO
    By GuardianDevil in forum Windows Programming
    Replies: 1
    Last Post: 05-01-2004, 02:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 06:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21