Thread: Multi Threading

  1. #1
    Registered User
    Join Date
    Jun 2003
    Location
    Austria
    Posts
    55

    Multi Threading

    I know there are several ways to multi thread - but i want to know whats the best (efficiency) - even it would be interesting to know whats the easiest..

    ps: i know.. my english is bad

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Depends entirely upon your operating system, and your compilers support for what ever features it offers. You fail to mention either.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Location
    Austria
    Posts
    55
    independent of os and compiler isn't possible?!

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    No. There are operating systems which have no concept of threads; C is a very general language and so it doesn't cover system-specific features. Things like graphics, sound, threads, etc. are all system-specific and compiler-specific.

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Pthreads for Linux is a fairly common C threading library.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  6. #6
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Your question is too vague to answer considering the complexities of different compilers and operating systems.

    The generic answer is
    there is no best way, only the ways that
    1) you understand
    2) work correctly
    3) do the job asked
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  7. #7
    Registered User
    Join Date
    Jun 2003
    Location
    Austria
    Posts
    55
    i like the generic answer WaltP

  8. #8
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Originally posted by IceBall
    i like the generic answer WaltP
    Well, then, there you go!
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. overlapped I/O and multi threading
    By krishnampkkm in forum C++ Programming
    Replies: 2
    Last Post: 06-22-2009, 03:27 PM
  2. Looking for light cross platform Threading library
    By umen242 in forum C++ Programming
    Replies: 7
    Last Post: 03-28-2008, 04:23 PM
  3. Multi Threading
    By beon in forum C Programming
    Replies: 5
    Last Post: 12-04-2006, 09:21 PM
  4. Replies: 6
    Last Post: 06-02-2006, 08:32 AM
  5. starting to learn multi threading
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2004, 01:44 PM