Thread: functions

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    23

    functions

    in C, it is possible to run 2 infinite loops at the same time?

    if yes, what is it called? parallel programming???

    many thx for any responses

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Using a multi-threaded or multi-process solution you can.

    Parallel programming I think is used in multiprocessor applications.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    23
    are there books which explain how to have multi-thread?

    terima kasih

  4. #4
    Ultraviolence Connoisseur
    Join Date
    Mar 2004
    Posts
    555
    hmm....look up the fork() command (if youre in *nix/lin*x) windows....i dont know.

  5. #5
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    fork() is actually multi-process.

    Multi-threading and multi-process are platform specific. I am sure there are books on the subject. Do a search on the board for pthread that should turn up a good amount of information.

  6. #6
    The C-er
    Join Date
    Mar 2004
    Posts
    192
    "Programming Windows" by Charles Petzold (Microsoft Press) has a chapter on multithreading.

  7. #7
    /*enjoy*/
    Join Date
    Apr 2004
    Posts
    159
    le multi processsing sur c n'est pas possible mais vous pouvez divisez le travail a executer
    dans certaines temp de travail comme tous les system d'exploi fait...
    ====>si vous voulez mon conseil
    faite un log executable puis avec une commande c lancer ce programme en paralles avec le votre programme source et le sys d'exploi il s'organisera pour faire le multi process
    ---good luck

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, 05:30 PM
  2. Functions and Classes - What did I do wrong?
    By redmage in forum C++ Programming
    Replies: 5
    Last Post: 04-11-2005, 11:50 AM
  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, 01:41 PM
  5. Shell functions on Win XP
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-19-2004, 05:39 AM