Thread: theoretical question about c programming

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Quote Originally Posted by grumpy View Post
    The first C standard to support threading was only ratified in 2011. Threading, with a pre-C11 implementation (compiler, library, etc), required use of libraries or operating system capabilities beyond the C standard - the terms "multithreading" and "C standard conformant" were mutually exclusive. Even now, not everyone has the luxury of being able to use a C11 implementation.
    If you're going to program any modern game, you're going to need to use plenty of libraries / operating system capabilities beyond the C standard. Threading would just be one more drop in the bucket.

    That said, to the original poster, games are much less multithreaded than you think; threading actually slows things down a lot if you're frequently manipulating the same data in multiple threads, because synchronizing access to the data adds overhead. It's only when tasks are largely working on independent data that multithreading shows its benefits.
    Last edited by Cat; 01-31-2014 at 11:09 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 12-18-2013, 07:08 AM
  2. Theoretical question regarding text files
    By TobiasK in forum C Programming
    Replies: 9
    Last Post: 07-26-2013, 11:26 AM
  3. Please help me in this theoretical question of C++ Templates
    By umair_attock in forum C++ Programming
    Replies: 15
    Last Post: 01-22-2009, 09:28 PM
  4. not just theoretical tutorials!!
    By npokcu in forum C Programming
    Replies: 1
    Last Post: 10-21-2001, 02:43 PM
  5. theoretical problem
    By cozman in forum C++ Programming
    Replies: 8
    Last Post: 09-06-2001, 04:02 PM