Thread: What system call use the CreateThread Function of borland?

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    1

    What system call use the CreateThread Function of borland?

    In an above post is commented the following one"

    With __beginthreadex(), the multithreaded versions of the std libs are linked instead of the standard versions......then it calls CreateThread() to create the thread itself.......


    my doubt is that what is the difference between the call beginthreadex and the call CreateTrhead of Borland. Or in another way , what system CAll uses Borland when you create a class TThread?


    thanks very much
    antonio farfan

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    CreateThread is WinAPI function
    beginthreadex is CRT function - it initializes CRT vars for using in MT envirounmemnt and then calls CreateThread function to actually create the thread
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Split from this 5 year old thread - http://cboard.cprogramming.com/showthread.php?t=23373
    Please read the rules.
    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

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. C system call and library call
    By Coconut in forum C Programming
    Replies: 6
    Last Post: 08-22-2002, 11:20 AM